Part Number Hot Search : 
1503J APM2023N CPT40030 SB22007 IT130 UNR521W G20TC15 Z5221B
Product Description
Full Text Search
 

To Download M34570M4-081FP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  description the 4570 group is a 4-bit single-chip microcomputer designed with cmos technology. its cpu is that of the 4500 series using a simple, high-speed instruction set. the computer is equipped with a carrier wave output circuit for remote control, an 8-bit timer with a reload register, a 10-bit timer with a reload register, and an 8-bit timer with two reload registers. the various microcomputers in the 4570 group include variations of the built-in memory size. the mask rom version and one time prom version of 4570 group are produced as shown in the table below. features l minimum instruction execution time when f(x in ) is selected for system clock ....................... 1.5 m s (f(x in )=2.0 mhz, v dd =4.5 v to 5.5 v) when f(x in )/4 is selected for system clock ................. 2.86 m s (f(x in )=4.2 mhz, v dd =2.0 v to 5.5 v) l supply voltage ............................. 2.5 v to 5.5 v (one time prom version) l system clock switch function ............................................................. f(x in )/4 or not divided l timers timer 1... 10-bit timer with a reload register and carrier wave output auto-control function timer 2 ................................ 8-bit timer with a reload register timer 3 ... 8-bit timer with two reload registers and carrier wave generation function l interrupt ................................................................... 4 sources l power-on reset circuit l watchdog timer ............................................................ 16 bits l key-on wakeup function (ports p0, p1, and p4, on/off of port p4 can be switched) l pull-up transistor .............. (ports p0, p1, and p4, on/off of port p4 can be switched) l voltage drop detection circuit l clock generating circuit (ceramic resonance) application remote control transmitter outline 36p2r-a pin configuration (top view) m34570mx-xxxfp ....................................... 2.0 v to 5.5 v (mask rom version) product m34570m4-xxxfp m34570m8-xxxfp m34570md-xxxfp m34570e8fp m34570edfp * *: under development (jan. 1999) rom type mask rom mask rom mask rom one time prom one time prom package 36p2r-a 36p2r-a 36p2r-a 36p2r-a 36p2r-a ram size ( 5 4 bits) 128 words 128 words 128 words 128 words 128 words rom (prom) size ( 5 10 bits) 4096 words 8192 words 16384 words 8192 words 16384 words d 1 p4 0 p4 1 p4 2 p4 3 cnv ss p1 3 p1 2 p0 2 p1 0 1 2 3 4 6 7 8 9 10 11 12 14 15 16 reset v dd x out x in v ss d 0 p0 1 p0 0 p2 0 5 13 17 18 36 35 34 33 31 30 26 25 24 23 22 21 20 19 32 27 29 28 p1 1 p0 3 p2 1 /int carr p3 2 p3 1 p3 0 vdce m34570mx-xxxfp d 3 d 5 d 4 d 7 d 6 d 8 d 9 /t out d 2 p3 3 4570 group single-chip 4-bit cmos microcomputer mitsubishi microcomputers
2 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer block diagram ram 128 words 5 4 bits rom (note) 4096 to 16384 words 5 10 bits port p0 port p1 4500 series cpu core memory i/o port internal peripheral functions timers/carrier wave generation timer 1 (10 bits) clock generating circuit timer 2 (8 bits) x in ex out watchdog timer (16 bits) register b (4 bits) register a (4 bits) register d (3 bits) register e (8 bits) stack registers sks (8 levels) interrupt stack register sdp(1 level) alu(4 bits) port d port p2 10 2 4 4 timer 3 (8 bits) note: prom 16384 words 5 10 bits for the built-in prom version. port p3 4 port p4 4 (carrier wave generation) reset (voltage drop detection circuit)
3 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer performance overview function 99 1.5 m s (f(x in ) = 2.0 mhz:system clock = f(x in ): v dd = 5.0 v) 2.86 m s (f(x in ) = 4.2 mhz:system clock = f(x in )/4: v dd = 5.0 v) 4096 words 5 10 bits 8192 words 5 10 bits 16384 words 5 10 bits 8192 words 5 10 bits 16384 words 5 10 bits 128 words 5 4 bits ten independent output ports; port d 9 is also used as the t out output pin. 4-bit i/o port; every pin of the ports has a key-on wakeup function and a pull-up function. 4-bit i/o port; every pin of the ports has a key-on wakeup function and a pull-up function. 2-bit input port, port p2 1 is also used as int input pin. 4-bit i/o port 4-bit input port; both pull-up function and key-on wakeup function can be switched by software. 1-bit output port (cmos output) 1-bit output pin; t out output pin is also used as port d 9 . 1-bit input pin with a key-on wakeup function. int input pin is also used as port p2 1 . 10-bit timer with a reload register and carrier wave output auto-control function 8-bit timer with a reload register 8-bit timer with two reload registers and carrier wave generation function 4 (one for external and three for timer) 1 level 8 levels (however, only 7 levels can be used when an interrupt is used or the tabp p instruction is executed) cmos silicon gate 36-pin plastic molded ssop C20 c to 70 c 2.0 v to 5.5 v for mask rom version (2.5 v to 5.5 v for one time prom version) 1.3 ma (f(x in ) = 4.2 mhz: system clock = f(x in )/4, v dd =5.0 v) 0.5 ma (f(x in ) = 1.0 mhz: system clock = f(x in ), v dd =3.0 v) 0.1 m a (ta=25 c, v dd =5v, typical value) parameter number of basic instructions minimum instruction execution time memory sizes input/output ports timers interrupt subroutine nesting device structure package operating temperature range supply voltage power dissipation (typical value) rom ram d 0 Cd 9 p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 p3 0 Cp3 3 p4 0 Cp4 3 carr t out int timer 1 timer 2 timer 3 sources nesting at active at ram back-up m34570m4 m34570m8 m34570md m34570e8 m34570ed output i/o i/o input i/o input output output input definition of clock and cycle l system clock the system clock is the basic clock for controlling this product. the system clock can be selected by bit 3 of the clock control register mr as shown in the table below. table selection of system clock l instruction clock the instruction clock is the standard clock for controlling cpu. the instruction clock is a signal derived from dividing the system clock by 3. the one cycle of the instruction clock is equivalent to the one machine cycle. l machine cycle the machine cycle is the standard cycle required to execute the instruction. system clock f(x in ) f(x in )/4 mr 3 0 1 note: f(x in )/4 is selected immediately after system is released from reset.
4 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer pin description name power supply ground cnv ss reset input clock input clock output output port d i/o port p0 i/o port p1 input port p2 i/o port p3 input port p4 carrier wave output for remote control interrupt input timer output voltage drop detection circuit enable input/output input i/o input output output i/o i/o i/o i/o input output input output input function connected to a plus power supply. connected to a 0 v power supply. connect cnv ss to v ss and apply l (0v) to cnv ss certainly. an n-channel open-drain i/o pin for a system reset. a pull-up transistor and a capacitor are built-in this pin. when the watchdog timer causes the system to be reset or the low-supply voltage is detected, the reset pin outputs l level. i/o pins of the clock generating circuit. connect a ceramic resonator between x in pin and x out pin. a feedback resistor is built-in between them. each pin of port d has an independent 1-bit wide output function. port d 9 is also used as t out output pin. the output structure is n-channel open-drain. 4-bit i/o port. it can be used as an input port when the output latch is set to 1. the output structure is n-channel open-drain. every pin of the ports has a key-on wakeup function and a pull-up function. 4-bit i/o port. it can be used as an input port when the output latch is set to 1. the output structure is n-channel open-drain. every pin of the ports has a key-on wakeup function and a pull-up function. 2-bit input port. port p2 1 is also used as the int input pin. 4-bit i/o port. it can be used as an input port when the output latch is set to 1. the output structure is n-channel open-drain. 4-bit input port. every pin of the ports has a key-on wakeup function and a pull-up function. both functions can be switched by software. carrier wave output pin for remote control transmit. the output structure is the cmos circuit. int input pin accepts an external interrupt and has a key-on wakeup function. int input pin is also used as port p2 1 . t out output pin has the function to output the timer 2 underflow signal divided by 2. t out output pin is also used as port d 9 . vdce pin is used to control the operation/stop of the voltage drop detection circuit. the circuit is operating when h level is input to the vdce pin. it is stopped when l level is input to this pin. pin v dd v ss cnv ss reset x in x out d 0 Cd 9 p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 p3 0 Cp3 3 p4 0 Cp4 3 carr int t out vdce
5 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer multifunction pin d 9 p2 1 multifunction t out int multifunction d 9 p2 1 pin t out int notes 1: pins except above have just single function. 2: the port d 9 is the output port and port p2 1 is the input port. connections of unused pins connection connect to v ss , or set the output latch to 0 and open. set the output latch to 1 and open. connect to v ss (note 1). connection connect to v ss , or set the output latch to 0 and open. connect to v ss (note 2) or open (note 3). open. pin p3 0 Cp3 3 p4 0 Cp4 3 carr pin d 0 Cd 8 d 9 /t out p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 /int notes 1: when the p2 1 /int pin is connected to v ss pin, set the return level to h level by software (interrupt control register i1 2 =1). when the p2 1 /int pin is connected to v ss pin while the return level is set to l level, system returns from ram back-up state immediately after system enters the ram back-up state. 2: in order to connect ports p4 0 Cp4 3 to v ss , turn off their pull-up transistors (pull-up control register pu0i=0) by software and also invalidate the key-on wakeup functions (key-on wakeup control register k0i=0). when these pins are connected to v ss while the key-on wakeup functions are left valid, the system fails to return from ram back-up state. in order to make these pins open, turn on their pull-up transistors (register pu0i=1) by software (i = 0, 1, 2, 3). be sure to select the key-on wakeup function and the pull-up function with every one port. 3: in order to make ports p4 0 Cp4 3 open, turn on their pull-up transistors (register pu0i = 1) by software (i = 0, 1, 2, 3). (note in order to set the output latch to 0 or 1 or make pins open) ? after system is released from reset, a port is in a high-impedance state until the output latch of the port is set to 0 by s oftware. accordingly, the voltage level of pins is undefined and the excess of the supply current may occur. ? to set the output latch periodically is recommended because the value of output latch may change by noise or a program run awa y (caused by noise). (note in order to connect unused pins to v ss ) ? to avoid noise, connect the unused pins to v ss at the shortest distance using a thick wire. port function port port d port p0 port p1 port p2 port p3 port p4 control bits 1 4 4 2 4 4 control instructions sd rd cld op0a iap0 op1a iap1 iap2 snzi0 (note) op3a iap3 iap4 control registers w2 2 pu0 k0 output structure n-channel open-drain n-channel open-drain n-channel open-drain n-channel open-drain remark pull-up functions key-on wakeup functions pull-up functions key-on wakeup functions key-on wakeup function pull-up functions (programmable) key-on wakeup functions (programmable) w2 2 controls the switch of d 9 / t out pin note: level of the p2 1 /int pin can be examined with the snzi0 instruction. pin d 0 Cd 8 , d 9 /t out p0 0 Cp0 3 p1 0 Cp1 3 p2 0 p2 1 /int p3 0 Cp3 3 p4 0 Cp4 3 input/ output output (10) i/o (4) i/o (4) input (2) i/o input (4)
6 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer port block diagrams iap4 instruction p4 2 pu0 2 k0 2 iap4 instruction p4 3 pu0 3 k0 3 iap4 instruction p4 1 pu0 1 k0 1 iap4 instruction p4 0 pu0 0 k0 0 p2 1 /int iap2 instruction external interrupt circuit p2 0 iap2 instruction p3 0 Cp3 3 iap3 instruction d t q op3a instruction ai d t q op0a instruction key-on wakeup input iap0 instruction pull-up transistor p0 0 Cp0 3 register a ai (note 2) d t q op1a instruction iap1 instruction p1 0 Cp1 3 ai d 9 /t out timer 2 underflow signal output w2 2 0 1 1/2 decoder sd instruction rd instruction s rq cld instruction decoder sd instruction rd instruction s rq cld instruction d 0 Cd 8 this symbol represents a parasitic diode. 2. i represents 0, 1, 2 or 3. notes 1. (note 1) register a key-on wakeup input (note 1) register a (note 1) (note 2) (note 1) (note 1) (note 1) (note 1) (note 2) (note 1) register a register a register a register a register a register y register y register a pull-up transistor (note 1) pull-up transistor (note 1) pull-up transistor pull-up transistor key-on wakeup input key-on wakeup input key-on wakeup input key-on wakeup input key-on wakeup input (note 1) pull-up transistor applied potential to ports p2 0 and p2 1 must be v dd or less.
7 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer port block diagrams (continued) timer 1 underflow signal c2 0 w1 0 port carr to timer 1 carry mr 3 0 1 1/2 timer 2 underflow signal orclk register b register a (t3ab) reload register r3l (8) timer 3(8) register b register a (t3hab) reload register r3h (8) 0 1 w3 3 reload control circuit (tab3) w3 1 ,w3 0 10 01 00 11 not available (t3ab) (tab3) t3f timer 3 interrupt c2 1 w3 3 q r t q r t x in this symbol represents a parasitic diode. note : (note)
8 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 1 amc instruction execution example fig. 2 rar instruction execution example fig. 3 registers a, b and register e function block operations cpu (1) arithmetic logic unit (alu) the arithmetic logic unit alu performs 4-bit arithmetic such as 4-bit data addition, comparison, and operation, or operation, and bit manipulation. (2) register a and carry flag (cy) register a is a 4-bit register used for arithmetic, transfer, exchange, and i/o operation. carry flag cy is a 1-bit flag that is set to 1 when there is a carry with the amc instruction (figure 1). it is unchanged with both a n instruction and am instruction. the value of a 0 is stored in carry flag cy with the rar instruction (figure 2). carry flag cy can be set to 1 with the sc instruction and cleared to 0 with the rc instruction. (3) registers b and e register b is a 4-bit register used for temporary storage of 4- bit data, and for 8-bit data transfer together with register a. register e is an 8-bit register. it can be used for 8-bit data transfer with register b used as the high-order 4 bits and register a as the low-order 4 bits (figure 3). (4) register d register d is a 3-bit register. it is used to store a 7-bit rom address together with register a and is used as a pointer within the specified page when the tabp p, bla p, or bmla p instruction is executed (figure 4). (cy) (m(dp)) (a) addition alu cy a 3 a 2 a 1 a 0 a 0 cy a 3 a 2 a 1 rar instruction sc instruction rc instruction a 3 a 2 a 1 a 0 b 3 b 2 b 1 b 0 e 7 e 6 e 5 e 4 e 3 e 2 e 1 e 0 a 3 a 2 a 1 a 0 b 3 b 2 b 1 b 0 tab instruction teab instruction tabe instruction tba instruction register b register a register b register a register e fig. 4 tabp p instruction execution example specifying address tabp p instruction p 6 p 5 p 4 p 3 p 2 p 1 p 0 pc h dr 2 dr 1 dr 0 a 3 a 2 a 1 a 0 pc l immediate field value p the contents of register d rom 840 middle-order 4 bits low-order 4 bits register a (4) register b (4) the contents of register a high-order 2 bits register b (4) register w5 (2)
9 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 5 stack registers (sks) structure fig. 6 example of operation at subroutine call (5) stack registers (sk s ) and stack pointer (sp) stack registers (sks) are used to temporarily store the contents of program counter (pc) just before branching until returning to the original routine when; ? branching to an interrupt service routine (referred to as an interrupt service routine), ? performing a subroutine call, or ? executing the table reference instruction (tabp p). stack registers (sks) are eight identical registers, so that subroutines can be nested up to 8 levels. however, one of stack registers is used when using an interrupt service routine or when executing a table reference instruction. accordingly, be careful not to stack over when performing these operations together. the contents of registers sks are destroyed when 8 levels are exceeded. the register sk nesting level is pointed automatically by 3- bit stack pointer (sp). the contents of the stack pointer (sp) can be transferred to register a with the tasp instruction. figure 5 shows the stack registers (sks) structure. figure 6 shows the example of operation at subroutine call. (6) interrupt stack register (sdp) interrupt stack register (sdp) is a 1-stage register. when an interrupt occurs, this register (sdp) is used to temporarily store the contents of data pointer, carry flag, skip flag, register a, and register b just before an interrupt until returning to the original routine. unlike the stack registers (sks), this register (sdp) is not used when executing the subroutine call instruction and the table reference instruction. (7) skip flag skip flag controls skip decision for the conditional skip instructions and continuous described skip instructions. when an interrupt occurs, the contents of skip flag is stored automatically in the interrupt stack register (sdp) and the skip condition is retained. sk 0 sk 1 sk 2 sk 3 sk 4 sk 5 sk 6 sk 7 (sp) = 0 (sp) = 1 (sp) = 2 (sp) = 3 (sp) = 4 (sp) = 5 (sp) = 6 (sp) = 7 program counter (pc) executing the return or table reference instruction executing the subroutine call or table reference instruction stack pointer (sp) points 7 at reset or returning from ram back-up mode. it points 0 by executing the first bm instruction, and the contents of program counter is stored in sk 0 . when the bm instruction is executed after eight stack registers are used ((sp) = 7), (sp) = 0 and the contents of sk 0 is destroyed. returning to the bm instruction execution address with the rt instruction, and the bm instruction is equivalent to the nop instruction. (sp) 0 (sk 0 ) 0001 16 (pc) sub1 main program 0002 16 nop address 0000 16 nop 0001 16 bm sub1 subroutine sub1 : nop rt (pc) (sk 0 ) (sp) 7 note: y y y y y
10 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 7 program counter (pc) structure fig. 8 data pointer (dp) structure fig. 9 sd instruction execution example (8) program counter (pc) program counter (pc) is used to specify a rom address (page and address). it determines a sequence in which instructions stored in rom are read. it is a binary counter that increments the number of instruction bytes each time an instruction is executed. however, the value changes to a specified address when branch instructions, subroutine call instructions, return instructions, or the table reference instruction (tabp p) is executed. program counter consists of pc h (most significant bit to bit 7) which specifies to a rom page and pc l (bits 6 to 0) which specifies an address within a page. after it reaches the last address (address 127) of a page, it specifies address 0 of the next page (figure 7). make sure that the pc h does not specify after the last page of the built-in rom. (9) data pointer (dp) data pointer (dp) is used to specify a ram address and consists of registers z, x, and y. register z specifies a ram file group, register x specifies a file, and register y specifies a ram digit (figure 8). register y is also used to specify the port d bit position. when using port d, set the port d bit position to register y certainly and execute the sd or rd instruction (figure 9). z 1 z 0 x 3 x 2 x 1 x 0 y 3 y 2 y 1 y 0 data pointer (dp) register z (2) register x (4) register y (4) specifying ram digit specifying ram file specifying ram file group p 5 p 4 p 3 p 2 p 1 p 0 a 6 a 5 a 4 a 3 a 2 a 1 a 0 program counter (pc) pc h specifying page pc l specifying address p 6 01 01 1 set specifying bit position port d output latch register y (4) d 5 d 4 d 0 d 6 d 9
11 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer program memory (rom) 1 word of rom is composed of 10 bits. rom is separated every 128 words by the unit of page (addresses 0 to 127). table 1 shows the rom size and pages. figure 10 shows the rom map of m34570m8. table 1 rom size and pages product m34570m4 m34570m8 m34570e8 m34570md m34570ed rom size ( 5 10 bits) 4096 words 8192 words 8192 words 16384 words 16384 words pages 32 (0 to 31) 64 (0 to 63) 64 (0 to 63) 128 (0 to 127) 128 (0 to 127) fig. 10 rom map of m34570mx fig. 11 interrupt address page (addresses 0080 16 to 00ff 16 ) structure note: when the tabp instruction is executed after executing the sbk instruction, data in pages 64 to 127 can be referred. when the tabp instruction is executed after executing the rbk instruction, data in pages 0 to 63 can be referred. a top part of page 1 (addresses 0080 16 to 00ff 16 ) is reserved for interrupt addresses (figure 11). when an interrupt occurs, the address (interrupt address) corresponding to each interrupt is set in the program counter, and the instruction at the interrupt address is executed. when using an interrupt service routine, write the instruction generating the branch to that routine at an interrupt address. page 2 (addresses 0100 16 to 017f 16 ) is the special page for subroutine calls. subroutines written in this page can be called from any page with the 1-word instruction (bm). subroutines extending from page 2 to another page can also be called with the bm instruction when it starts on page 2. rom pattern (bits 9 to 0) of all addresses can be used as data areas with the tabp p instruction. 90 87654321 interrupt address page 0000 16 0080 16 017 f 16 subroutine special page 007 f 16 00 ff 16 0100 16 1 fff 16 0180 16 page 1 page 2 page 0 page 3 page 127 0 fff 16 page 31 90 87654321 external 0 interrupt address 0080 16 0084 16 timer 1 interrupt address timer 2 interrupt address 0086 16 00ff 16 timer 3 interrupt address 0088 16
12 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer data memory (ram) 1 word of ram is composed of 4 bits, but 1-bit manipulation (with the sb j, rb j, and szb j instructions) is enabled for the entire memory area. a ram address is specified by a data pointer. the data pointer consists of registers z, x, and y. set a value to the data pointer certainly when executing an instruction to access ram. table 2 shows the ram size. figure 12 shows the ram map. table 2 ram size ram size 128 words 5 4 bits (512 bits) fig. 12 ram map product m34570mx m34570ex register y register z register x 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0 1 7 ram 128 words 5 4 bits (512 bits) 23 6 128 words ...
13 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer interrupt function the interrupt type is a vectored interrupt branching to an individual address (interrupt address) according to each interrupt source. an interrupt occurs when the following 3 conditions are satisfied. ? interrupt enable flag (inte) = 1 (interrupt enabled) ? interrupt enable bit = 1 (interrupt request occurrence enabled) ? an interrupt activated condition is satisfied (request flag = 1) table 3 shows interrupt sources. (refer to each interrupt request flag for details of activated conditions.) (1) interrupt enable flag (inte) the interrupt enable flag (inte) controls whether the every interrupt enable/disable. interrupts are enabled when inte flag is set to 1 with the ei instruction and disabled when inte flag is cleared to 0 with the di instruction. when any interrupt occurs, the inte flag is automatically cleared to 0, so that other interrupts are disabled until the ei instruction is executed. (2) interrupt enable bits (v1 0 Cv1 3 , v2 0 Cv2 3 ) use an interrupt enable bit of interrupt control registers v1 and v2 to select the corresponding interrupt request or skip instruction. table 4 shows the interrupt request flag, interrupt enable bit and skip instruction. table 5 shows the interrupt enable bit function. (3) interrupt request flag when the activated condition for each interrupt is satisfied, the corresponding interrupt request flag is set to 1. each interrupt request flag is cleared to 0 when either; ? an interrupt occurs, or ? the next instruction is skipped with a skip instruction. each interrupt request flag is set when the activated condition is satisfied even if the interrupt is disabled by the inte flag or its interrupt enable bit. once set, the interrupt request flag retains set until a clear condition is satisfied. accordingly, an interrupt occurs when the interrupt disable state is released while the interrupt request flag is set. if more than one interrupt request flag is set when the interrupt disable state is released, the interrupt priority level is as follows shown in table 3. table 3 interrupt sources interrupt address address 0 in page 1 address 4 in page 1 address 6 in page 1 address 8 in page 1 interrupt name external 0 interrupt timer 1 interrupt timer 2 interrupt timer 3 interrupt activated condition level change of int pin timer 1 underflow timer 2 underflow timer 3 underflow priority level 1 2 3 4 table 4 interrupt request flag, interrupt enable bit and skip instruction interrupt name external 0 interrupt timer 1 interrupt timer 2 interrupt timer 3 interrupt skip instruction snz0 snzt1 snzt2 snzt3 request flag exf0 t1f t2f t3f enable bit v1 0 v1 2 v1 3 v2 0 table 5 interrupt enable bit function skip instruction invalid valid interrupt enable bit 1 0 occurrence of interrupt request enabled disabled
14 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer ?program counter (pc) ..................................................... each interrupt address ?stack register (sk) ........... the address of main routine to be executed when returning ?interrupt enable flag (inte) ........................................................ 0 (interrupt disabled) ? interrupt request flag (only the flag for the current interrupt source) ........................................................................................ 0 ?data pointer, carry flag, registers a and b, skip flag ............... stored in the interrupt stack register (sdp) automatically fig. 13 program example of interrupt processing (4) internal state during an interrupt the internal state of the microcomputer during an interrupt is as follows (figure 14). ? program counter (pc) an interrupt address is set in program counter. the address to be executed when returning to the main routine is automatically stored in the stack register (sk). ? interrupt enable flag (inte) inte flag is cleared to 0 so that interrupts are disabled. ? interrupt request flag only the request flag for the current interrupt source is cleared to 0. ? data pointer, carry flag, skip flag, registers a and b the contents of these registers and flags are stored automatically in the interrupt stack register (sdp). (5) interrupt processing when an interrupt occurs, a program at an interrupt address is executed after a branch to a sequence for storing data into stack register is performed. write the branch instruction to an interrupt service routine at an interrupt address. use the rti instruction to return to main routine. interrupt enabled by executing the ei instruction is performed after executing 1 instruction (just after the next instruction is executed). accordingly, when the ei instruction is executed just before the rti instruction, interrupts are enabled after returning to the main routine. (refer to figure 13) fig. 14 internal state when interrupt occurs fig. 15 interrupt system diagram ei rti interrupt service routine interrupt occurs interrupt is enabled main routine : interrupt enabled state : interrupt disabled state t1f v1 2 exf0 v1 0 address 4 in page 1 address 0 in page 1 t2f v1 3 address 6 in page 1 timer 1 underflow request flag (state retained) enable bit enable flag activated condition int pin (l ? h or h ? l input) inte timer 2 underflow t3f v2 0 timer 3 underflow address 8 in page 1
15 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (6) interrupt control register l interrupt control register v1 interrupt enable bits of external 0, timer 1 and timer 2 are assigned to register v1. set the contents of this register through register a with the tv1a instruction. the tav1 instruction can be used to transfer the contents of register v1 to register a. table 6 interrupt control register v1 3 v1 2 v1 1 v1 0 timer 2 interrupt enable bit timer 1 interrupt enable bit not used external 0 interrupt enable bit 0 1 0 1 0 1 0 1 interrupt disabled (snzt2 instruction is valid) interrupt enabled (snzt2 instruction is invalid) interrupt disabled (snzt1 instruction is valid) interrupt enabled (snzt1 instruction is invalid) this bit has no function, but read/write is enabled. interrupt disabled (snz0 instruction is valid) interrupt enabled (snz0 instruction is invalid) interrupt control register v1 at reset : 0000 2 ram back-up : 0000 2 r/w v2 3 v2 2 v2 1 v2 0 not used not used not used timer 3 interrupt enable bit 0 1 0 1 0 1 0 1 this bit has no function, but read/write is enabled. interrupt disabled (snzt3 instruction is valid) interrupt enabled (snzt3 instruction is invalid) interrupt control register v2 at reset : 0000 2 at ram back-up : 0000 2 r/w this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. note: r represents read enabled, and w represents write enabled. l interrupt control register v2 interrupt enable bit of timer 3 is assigned to register v2. set the contents of this register through register a with the tv2a instruction. the tav2 instruction can be used to transfer the contents of register v2 to register a.
16 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (7) interrupt sequence interrupts occur only when the respective inte flag, interrupt enable bits (v1 0 Cv1 3 and v2 0 Cv2 3 ), and interrupt request flags (exf0, t1f, t2f, t3f) are 1. the interrupt actually occurs 2 to 3 machine cycles after the cycle in which all three conditions are satisfied. the interrupt occurs after 3 machine cycles only when the three interrupt conditions are satisfied on execution of instructions other than one-cycle instructions (refer to figure 16). fig. 16 interrupt sequence notes 1: the system clock = f(x in )/4 is selected just after system is released from reset. 2: the address is stacked to the last cycle. 3: this interval of cycles depends on the instruction executed at the time when each interrupt activated condition is satisfied. 2 to 3 machine cycles (notes 2, 3) software starts from interrupt address. flag cleared interrupt enabled state ei instruction execution cycle interrupt enable flag (inte) retaining level for 4 cycles or more of f(x in ) is necessary. interrupt disabled state flag exf0 flag t1f, t2f t3f int pin external interrupt timer 1, timer 2, timer 3 interrupts interrupt activated condition satisfied t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 1 machine cycle f(x in ) system clock=f(x in )/4 selected t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 t 1 t 2 t 3 f(x in ) system clock=f(x in ) selected l when an interrupt request flag is set after its interrupt is enabled (note 1)
17 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer external interrupts an external interrupt request occurs when a valid waveform (= waveform causing the external 0 interrupt) is input to an interrupt input pin (edge detection). the external 0 interrupt can be controlled with the interrupt control register i1. table 7 external interrupt activated condition name external 0 interrupt input pin p2 1 /int valid waveform falling waveform (h ? l) rising waveform (l ? h) valid waveform selection bit (i1 2 ) 0 1 fig. 17 external interrupt circuit structure one-sided edge detection circuit exf0 i1 2 p2 1 /int 0 1 skip snzi0 instruction external 0 interrupt falling rising
18 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (1) external 0 interrupt request flag (exf0) external 0 interrupt request flag (exf0) is set to 1 when a valid waveform is input to p2 1 /int pin. the valid waveforms causing the interrupt must be retained at their level for 4 cycles or more of the system clock (refer to figure 16). the state of exf0 flag can be examined with the skip instruction (snz0). use the interrupt control register v1 to select the interrupt or the skip instruction. the exf0 flag is cleared to 0 when an interrupt occurs or when the next instruction is skipped with the skip instruction. the p2 1 /int pin need not be selected the external interrupt input int function or the normal input port p2 1 function. however, the exf0 flag is set to 1 when a valid waveform is input to p2 1 /int pin even if it is used as an input port p2 1 . l external 0 interrupt activated condition external 0 interrupt activated condition is satisfied when a valid waveform is input to p2 1 /int pin. the valid waveform can be selected from rising waveform or falling waveform. an example of how to use the external 0 interrupt is as follows. select the valid waveform with the bit 2 of register i1. clear the exf0 flag to 0 with the snz0 instruction. a set the nop instruction for the case when a skip is performed with the snz0 instruction. ? set both the external 0 interrupt enable bit (v1 0 ) and the inte flag to 1. the external 0 interrupt is now enabled. now when a valid waveform is input to the p2 1 /int pin, the exf0 flag is set to 1 and the external 0 interrupt occurs. (2) external interrupt control register l interrupt control register i1 register i1 controls the valid waveform for the external 0 interrupt, the return level (valid level of wakeup signal) from the ram back-up and p2 1 /int pin function. set the contents of this register through register a with the ti1a instruction. the tai1 instruction can be used to transfer the contents of register i1 to register a. table 8 external interrupt control register notes 1: r represents read enabled, and w represents write enabled. 2: depending on the input state of p2 1 /int pin, the external interrupt request flag exf0 may be set to 1 when the contents of i1 2 is changed. accordingly, set a value to bit 2 of register i1 and execute the snz0 instruction to clear the exf0 flag after executing at least one instruction. i1 3 i1 2 i1 1 i1 0 not used interrupt valid waveform for int pin/return level selection bit (note 2) not used not used 0 1 0 1 0 1 0 1 this bit has no function, but read/write is enabled. falling waveform (l level of int pin is recognized with the snzi0 instruction)/l level rising waveform (h level of int pin is recognized with the snzi0 instruction)/h level this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. interrupt control register i1 r/w at reset : 0000 2 at ram back-up : state retained
19 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer timers the 4570 group has the programmable timers and a fixed dividing frequency timer. l programmable timer the programmable timer has a reload register and enables the frequency dividing ratio to be set. it is decremented from a set value n. when it underflows (count to n + 1), a timer interrupt request flag is set to 1, new data is loaded from the reload register, and count continues (auto-reload function). l fixed dividing frequency timer the fixed dividing frequency timer has the fixed frequency dividing ratio (n). an interrupt request flag is set to 1 every n count of a count pulse. fig. 18 auto-reload function ff 16 n 00 16 n : counter initial value count starts reload reload 1st underflow 2nd underflow n+1 count n+1 count time an interrupt occurs or a skip instruction is executed. timer 1 interrupt request flag the contents of counter ? ?
20 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer the 4570 group timer consists of the following circuits. ? prescaler : frequency divider ? timer 1 : 10-bit programmable timer with the interrupt function and the carrier wave output auto-control function ? timer 2 : 8-bit programmable timer with the interrupt function ? timer 3 : 8-bit programmable timer with the interrupt function and the carrier wave generation function ? 16-bit timer prescaler, timer 1, timer 2 and timer 3 can be controlled with the timer control registers w1, w2 and w3. 16-bit timer is the free-run counter without the control register. each function is described below. table 9 function related timers count source ? instruction clock ? prescaler output (orclk) ? carrier wave generating circuit output (carry) ? prescaler output (orclk) ? timer 1 underflow ? instruction clock ? 16-bit timer underflow ? prescaler output (orclk) ? timer 2 underflow ? f(x in ) or f(x in )/2 ? instruction clock structure frequency divider 10-bit programmable binary down counter 8-bit programmable binary down counter 8-bit programmable binary down counter 16-bit fixed dividing frequency circuit prescaler timer 1 timer 2 timer 3 16-bit timer use of output signal ? timer 1, 2 and 3 count sources ? timer 1 interrupt ? carrier wave output auto-control ? timer 2 count source ? timer 2 interrupt ? timer 3 count source ? t out output ? timer 3 interrupt ? timer 1 count source ? carrier wave ? watchdog timer (15-th bit output is counted twice.) ? timer 2 count source (16-bit timer underflow) frequency dividing ratio 4, 8 1 to 1024 1 to 256 1 to 256 65536 control register w1 w1 (w5) w2 w3
21 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 19 timers structure notes 1: count source is stopped by setting to ?. 2: when the t1ab instruction is executed after setting w1 0 to ?,?data is only written to reload register r1. register a orclk timer 1 underflow signal wdf1 wdf2 1/4 1/8 w1 3 (note 1) 0 1 0 1 w1 2 prescaler (tab1) register a register a register a reload control circuit (tab2) (note 2) (tab3) w3 3 t 2 a b q r t timer 2 underflow signal d 9 /t out d 9 output register b 0 1 w2 2 0 1 w1 0(note 1) x in t2f timer 2 interrupt t1f timer 1 interrupt reload register r1 (10) 1/2 system reset 16-bit timer (wdt) instruction clock 15 116 wrst instruction reset signal q r s wef timer 2 underflow signal timer 1(10) (t1ab) instruction clock internal clock generating circuit (divided by 3) frequency dividing circuit (divided by 4) 1 0 mr 3 (tab1) register w5 carry reload register r2 (8) timer 2 (8) register b (tr2ab) (tab2) 0 1 w2 3(note 1) w2 1 ,w2 0 10 01 00 11 t3f timer 3 interrupt register b (t3ab) reload register r3l (8) timer 3(8) register b (t3hab) reload register r3h (8) 0 1 w3 3(note1) mr 3 0 1 1/2 carry (tab3) 16-bit timer underflow signal 0 1 w1 1 w3 1 ,w3 0 10 01 00 11 not available (t3ab) (to timer 1/port carr) t 2 a b system clock
22 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer table 10 timer control registers timer control register w1 w1 3 w1 2 w1 1 w1 0 at reset : 0000 2 at ram back-up : 0000 2 0 1 0 1 0 1 0 1 r/w stop (prescaler state initialized) operating instruction clock divided by 4 instruction clock divided by 8 prescaler output (orclk) carrier output (carry) stop (state retained) operating prescaler control bit prescaler dividing ratio selection bit timer 1 count source selection bit timer 1 control bit timer control register w2 at reset : 0000 2 at ram back-up : state retained r/w 0 1 stop (state retained) operating port d 9 t out pin w2 3 w2 2 w2 1 w2 0 timer 2 control bit port d 9 /t out pin function selection bit timer 2 count source selection bits 0 1 w2 1 0 0 1 1 count source prescaler output (orclk) timer 1 underflow signal instruction clock 16-bit timer underflow signal timer control register w3 at reset : 0000 2 at ram back-up : state retained r/w 0 1 0 1 stop (state retained) operating this bit has no function, but read/write is enabled. w3 3 w3 2 w3 1 w3 0 timer 3 control bit not used timer 3 count source selection bits w2 0 0 1 0 1 w3 1 0 0 1 1 w3 0 0 1 0 1 count source timer 2 underflow signal prescaler output (orclk) f(x in ) or f(x in )/2 not available timer count value store register w5 at reset : 00 2 at ram back-up : state retained r/w 2-bit register. the contents of the high-order 2 bits (bits 9 and 8) of the 10-bit rom pattern at address (d 2 d 1 d 0 a 3 a 2 a 1 a 0 ) in page p specified by registers d and a is stored in this register w5 with the tabp p instruction. in addition, data can be transferred between the low-order 2 bits of register a and this register w5 with the tw5a or taw5 instruction. data can be read/written to/from the high-order 2 bits of timer 1 with the t1ab or tab1 instruction. note: r represents read enabled, and w represents write enabled.
23 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (1) timer control registers l timer control register w1 register w1 controls the count source and count operation of timer 1, the frequency dividing ratio and count operation of prescaler. set the contents of this register through register a with the tw1a instruction. the taw1 instruction can be used to transfer the contents of register w1 to register a. l timer control register w2 register w2 controls the count operation and count source of timer 2 and d 9 /t out pin function. set the contents of this register through register a with the tw2a instruction. the taw2 instruction can be used to transfer the contents of register w2 to register a. l timer control register w3 register w3 controls the count operation and count source of timer 3. set the contents of this register through register a with the tw3a instruction. the taw3 instruction can be used to transfer the contents of register w3 to register a. l timer count value store register w5 2-bit register. the contents of the high-order 2 bits (bits 9 and 8) of the 10-bit rom pattern at address in page p specified by registers d and a is stored in this register w5 with the tabp p instruction. in addition, data can be transferred between the low-order 2 bits of register a and this register w5 with the tw5a or taw5 instruction. data can be read/written to/from the high-order 2 bits of timer 1 with the t1ab or tab1 instruction. (2) precautions note the following for the use of timers. l prescaler stop the prescaler operation to change its frequency dividing ratio. l count source stop timer 1, 2 or 3 counting to change its count source. l reading the timer count value stop each of the timers and then execute the tab1, tab2 or tab3 instruction to read timer 1, 2 or 3 data. l writing to reload register r1 when writing data to reload register r1 while timer 1 is operating, avoid a timing when timer 1 underflows. l writing to reload register r3h when writing data to reload register r3h while timer 3 is operating, avoid a timing when timer 3 underflows. (3) prescaler prescaler is a frequency divider. its frequency dividing ratio can be selected. the count source of prescaler is the instruction clock. use the bit 2 of register w1 to select the prescaler dividing ratio and the bit 3 to start and stop its operation. when the bit 3 of register w1 is cleared to 0, prescaler is initialized, and the output signal (orclk) stops. (4) timer 1 (interrupt function) timer 1 is a 10-bit binary down counter with the timer 1 reload register (r1). the 10-bit data can be set in timer 1 through registers a, b and w5. set bits 0 to 3 to register a, bits 4 to 7 to regiser b and bits 8 to 9 to register w5 to set data to timer 1. also, rom pattern (bits 0 to 9) can be set to registers a, b and w5 with the tabp p instruction. execute the t1ab instruction to set data in timer 1. when timer 1 stops, 10-bit data can be set simultaneously in timer 1 and the reload register (r1) with the t1ab instruction. when timer 1 is operating, data can be set only in the reload register (r1) with the t1ab instruction. when setting the next count data to reload register r1 while timer 1 is operating, be sure to set data before timer 1 underflows. timer 1 starts counting after the following process; set data in timer 1, select the count source with bit 1 of register w1, a set the bit 0 of register w1 to 1. once count is started, when timer 1 underflows (the next count pulse is input after the contents of timer 1 becomes 0), the timer 1 interrupt request flag (t1f) is set to 1, new data is loaded from reload register r1, and count continues (auto-reload function). when a value set in reload register r1 is n, timer 1 divides the count source signal by n + 1 (n = 0 to 1023). data can be read from timer 1 to registers a, b and w5. stop counting and then execute the tab1 instruction to read its data. (5) timer 2 (interrupt function) timer 2 is an 8-bit binary counter with the timer 2 reload register (r2). data can be set simultaneously in timer 2 and the reload register (r2) with the tab2 instrucion. also, data can be set only in the reload register (r2) with the tr2ab instruction. timer 2 starts counting after following process; set data in timer 2, select the count source with bits 0 and 1 of register w2, a set the bit 3 of register w2 to 1. once count is started, when timer 2 underflows (the next count pulse is input after the contents of timer 2 becomes 0), the timer 2 interrupt request flag (t2f) is set to 1, new data is loaded from reload register r2, and count continues (auto-reload function). when a value set in reload register r2 is n, timer 2 divides the count source signal by n+1 (n = 0 to 255). data can be read from timer 2 to registers a and b with the tab2 instruction. stop counting and then execute the tab2 instruction to read its data.
24 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (6) timer 3 timer 3 is an 8-bit binary down counter with the timer 3 reload registers (r3h, r3l). data can be set simultaneously in timer 3 and the reload register (r3l) with the t3ab instruction. data can be set in reload register r3h with the t3hab instruction. timer 3 starts counting after the following process; set data in timer 3, select the count source with the bits 1 and 0 of register w3, a set the bit 3 of register w3 to 1. the f(x in ) or f(x in )/2 is selected as the count source by setting w3 1 to 1 and w3 0 to 0. when the f(x in ) is selected as the system clock (bit 3 of clock control register mr= 0), f(x in ) is selected as the count source. when the f(x in )/4 is selected as the system clock (bit 3 of clock control register mr= 1), f(x in )/2 is selected as the count source. once count is started, when timer 3 underflows (the next count pulse is input after the contents of timer 3 become 0), the timer 3 interrupt request flag (t3f) is set to 1, new data is loaded from reload register r3h, and count coutinues (auto- reload function). when the timer 3 underflows again after auto-reload is performed, the timer 3 interrupt request flag (t3f) is set to 1 and new data is reloaded from the reload register r3l and count continues. timer 3 reloads data from reload register r3h or r3l alternately every underflow. when the t3ab instruction is executed while timer 3 is operating, new data is set in timer 3 and reload register r3l, count is started again at the next machine cycle. at the next underflow, data is reloaded from r3h and count continues regardless that auto-reload is performed from reload register r3h or r3l at the previous underflow. data can be read from timer 3 through registers a and b. stop counting and then execute the tab3 instruction to read its data. timer 3 can be also used as the carrier wave generating circuit. (7) timer output pin (d 9 /t out ) timer output pin (d 9 /t out ) is used to output the timer 2 underflow signal. the d 9 /t out pin function can be selected by the bit 2 of register w2. (8) timer interrupt request flags (t1f, t2f, t3f) each timer interrupt request flag is set to 1 when each timer underflows. the state of these flags can be examined with the skip instructions (snzt1, snzt2, snzt3). use the interrupt control registers v1 and v2 to select an interrupt or a skip instruction. an interrupt request flag is cleared to 0 when an interrupt occurs or when the next instruction is skipped with a skip instruction.
25 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer watchdog timer watchdog timer provides a method to reset the system when a program runs wild. watchdog timer consists of 16-bit timer (wdt), watchdog timer enable flag (wef), and watchdog timer flags (wdf1, wdf2). timer wdt starts downcounting the instruction clocks as the count source immediately after system is released from reset. the underflow signal is generated when the count value reaches 0000 16 . this underflow signal can be used as the timer 2 count source. when the wrst instruction is executed after system is released from reset, the wef flag is set to 1. at this time, the watchdog timer starts operating. when the count value of timer wdt reaches bfff 16 or 3fff 16 , wdf1 flag is set to 1. then, if the wrst instruction is not executed while the timer wdt counts 32767, the wdf2 ______ flag is set to 1 and the reset pin outputs l level to reset the microcomputer. in software using the watchdog timer, make sure that the wrst instruction is executed in 32766 machine cycles or less in order to keep the microcomputer operating normally. to prevent the watchdog timer from stopping in the event of misoperation, the wef flag is designed not to be initialized once the wrst instruction has been executed. note also that, if the wrst instruction is never executed, the watchdog timer does not start. fig. 20 watchdog timer function fig. 21 program example to enter the ram back-up mode when using the watchdog timer value of timer wdt flag wdf2 reset pin output system reset wrst instruction execution flag wef ffff 16 0000 16 flag wdf1 3fff 16 bfff 16 wrst instruction execution the contents of the wef flag, the wdf1 and wdf2 flags and the timer wdt are initialized at the ram back-up mode. however, if the wdf2 flag is set to 1 at the same time that the microcomputer enters the ram back-up mode, system reset may be performed. when using the watchdog timer and the ram back-up mode, initialize the wdf1 flag with the wrst instruction just before the microcomputer enters the ram back-up mode (refer to figure 21). pof epof ; pof instruction execution enabled (ram back-up mode) oscillation stop wrst ; clear wdf1 flag
26 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer carrier wave generating circuit the 4570 group has a carrier wave generating circuit that generates the transfer waveform for various remote control carrier wave. the carrier wave generating circuit outputs the signal inverted every timer 3 underflow (carry) from port carr. when using the carrier wave generating circuit, select the f(x in ) or f(x in )/2 for the timer 3 count source (w3 1 =1, w3 0 =0). when the bit 3 of the clock control register mr is 0 (system clock=f(x in )), f(x in ) is selected as the count source. when the bit 3 of the clock control register mr is 1 (system clock=f(x in )/4), f(x in )/2 is selected as the count source. set the count value corresponding to l interval of carrier wave output to timer 3 reload register r3l. set the count value corresponding to h interval of carrier wave output to timer 3 reload register r3h. also, timer 1 can auto-control the carrier wave output of port carr by setting the carrier wave output control register (c2). when timer 3 is stopped, the output level of port carr is initialized. (l level) (1) carrier wave output control register (c2) timer 1 can auto-control the output enable interval and the output disable interval of the carrier wave output from port carr by setting the bit 0 of register c2 to 1. set the contents of this register through register a with the tc2a instruction. the setting of the output enable/disable interval is described below. validate the carrier wave output auto-control function (c2 0 =1). set the count value (l interval of carrier wave output) to timer 3 and reload register r3l. a set the count value (h interval of carrier wave output) to timer 3 reload register r3h. ? set the count value (the output enable interval of carrier wave from port carr) to timer 1. ? select the carrier wave (w1 1 = 1) as the timer 1 count source. ? operate timer 1 (w1 0 =1). ? operate timer 3 (w3 3 =1). ? set the next count value (the output disable interval of carrier wave from port carr) to reload register r1 before timer 1 underflow occurs. the carrier wave is output from port carr until the first timer 3 underflow occurs. the output of the carrier wave from port carr is disabled and the next count value is loaded from reload register r1 to timer 1 by the first timer 1 underflow. then, the output of carrier wave is disabled until the second timer 1 underflow occurs. also, the next enable interval of the carrier wave output can be set by setting the third count value to timer 1 reload register r1 before the second timer 1 underflow occurs. if the carrier wave output auto-control function is invalidated (c2 0 =0) while the carrier wave output is auto-controlled, the output of port carr retains the state when the auto-control is invalidated regardless of timer 1 underflow. this state can be terminated by timer 1 stop (w1 0 =0). when the carrier wave output auto-control function is validated (c2 0 =1) again after it is invalidated (c2 0 =0), the auto- control of carrier wave output is started again when the next timer 1 underflow occurs. stop the timer 3 and invalidate the auto-control function by timer 1 to use the port carr output contorl bit (c2 1 ). (2) notes when using the carrier wave output auto-control function l set the timer 1 and register c2 before timer 3 is started to operate (w3 3 =1). l stop the timer 1 (w1 0 =0) after stopping the timer 3 (w3 3 =0) while the carrier wave output is disabled in order to stop the carrier wave output auto-control operation. l if the carrier wave output auto-control function is invalidated (c2 0 =0) while the carrier wave output is auto-controlled, the output of port carr retains the state when the auto- control is invalidated regardless of timer 1 underflow. when the carrier wave output auto-control function is validated (c2 0 =1) again after it is invalidated (c2 0 =0), the auto-control by timer 1 is validated again when the next timer 1 underflow occurs. however, when the carrier wave output auto-control bit (c2 0 ) is changed during timer 1 underflow, the error-operation may occur. l when the carrier wave output auto-control function is selected, use the carrier wave carry as the timer 1 count source. if the orclk is used as the count source, a short pulse may occur in port carr output because orclk is not synchronized with the carrier wave. l when the carrier wave output auto-control function is selected and data is set to reload register r1 while timer 1 is operating, avoid the timing that the contents of timer 1 becomes 0 to execute the t1ab instruction. table 11 carrier wave output control register c2 1 port carr output control bit at reset : 00 2 carrier wave output control register c2 at ram back-up : 00 2 w c2 0 0 1 0 1 auto-control output by timer 1 is invalid auto-control output by timer 1 is valid port carr l level output port carr h level output carrier wave output auto-control bit note: w represents write enabled.
27 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 22 carrier wave output auto-control by timer 1 (c2 0 ) 0 register c2 0 t (c2 0 ) 1 t (c2 0 ) 0 (c2 0 ) 1 t interval a is set by timer 1 t t t (c2 0 ) 1 carrier wave output start carrier wave output start a b c d port carr output h l timer 1 underflow timer 1 start t 1 0 timer 1 underflow 1 0 port carr output h l 1 0 timer 3 underflow carry timer 3 start t h l 1 0 f(x in ) (divided by 3) h l 210 3 210 2 10 3 2 10 2 10 r3h timer 3 timer 3 reload register r3h l interval tw3a instruction machine cycle r3l r3h r3l 03 16 02 16 set by r3l carry h l carry h l h interval set by r3h l interval set by r3l h interval set by r3h timer 3 reload register r3l interval b is set by reload register r1 interval c is set by reload register r1 interval d is set by reload register r1 t t t y y y y y
28 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer reset function ____________ system reset is performed by applying l level to reset pin for 1 machine cycle or more when the following condition is satisfied; ? the value of supply voltage is the minimum value or more of the recommended operating conditions. ____________ then when h level is applied to reset pin, software starts from address 0 in page 0. v dd power-on reset circuit output voltage internal reset signal power-on reset pin wef watchdog timer output internal reset signal reset state reset released this symbol represents a parasitic diode. note: applied potential to reset pin must be v dd or less. (note) power-on reset circuit pull-up transistor voltage drop detection circuit f(x in ) reset f(x in ) is counted 10757 to 10786 times software start (address 0 in page 0) note: the number of clock cycles depends on the internal state of the microcomputer when reset is performed. (note) ? ? fig. 23 reset release timing fig. 24 reset pin input waveform and reset operation (1) power-on reset reset can be automatically performed at power on (power- on reset) by the built-in power-on reset circuit. when the built- in power-on reset circuit is used, the time for the supply voltage to reach the minimum operating voltage must be set to 100 m s or less. if the rising time exceeds 100 m s, connect a capacitor between the reset pin and v ss at the shortest distance, and input l level to reset pin until the value of supply voltage reaches the minimum operating voltage. fig. 25 power-on reset circuit example note: keep the value of supply voltage the minimum value or more of the recommended operating conditions. reset software start (address 0 in page 0) reset input 1machine cycle or more = 0.3v dd f(x in ) is counted 10757 to 10786 times (note) 0.85v dd
29 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer ? program counter (pc) ............................................................................................ address 0 in page 0 is set to program counter. ? interrupt enable flag (inte) ................................................................................... ? power down flag (p) ............................................................................................... ? external 0 interrupt request flag (exf0) ................................................................ ? interrupt control register v1 ................................................................................... ? interrupt control register v2 ................................................................................... ? interrupt control register i1 .................................................................................... ? timer 1 interrupt request flag (t1f) ...................................................................... ? timer 2 interrupt request flag (t2f) ...................................................................... ? timer 3 interrupt request flag (t3f) ...................................................................... ? watchdog timer flags (wdf1, wdf2) ................................................................... ? watchdog timer enable flag (wef) ....................................................................... ? timer control register w1 ...................................................................................... ? timer control register w2 ...................................................................................... ? timer control register w3 ...................................................................................... ? timer count value store register w5 ..................................................................... ? clock control register mr ...................................................................................... ? 8-bit general-purpose register si ........................................................................... ? carrier wave output control register c2 ................................................................. ? key-on wakeup control register k0 ....................................................................... ? pull-up control register pu0 ................................................................................... ? carry flag (cy) ....................................................................................................... ? register a .............................................................................................................. ? register b .............................................................................................................. ? register d .............................................................................................................. ? register e .............................................................................................................. ? register x .............................................................................................................. ? register y .............................................................................................................. ? register z ............................................................................................................... ? stack pointer (sp) .................................................................................................. (2) internal state at reset table 12 shows port state at reset, and figure 26 shows internal state at reset (they are retained after system is released from reset). name d 0 Cd 8 , d 9 /t out p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 /int p3 0 Cp3 3 p4 0 Cp4 3 carr state high impedance (note 1) h (v dd ) level (note 1) high impedance high impedance (note 1) high impedance (note 2) l (v ss ) level function d 0 Cd 8 , d 9 p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 p3 0 Cp3 3 p4 0 Cp4 3 carr table 12 port state at reset the contents of timers, registers, flags and ram except those shown in figure 26 are undefined, so set the initial values to them. notes 1: output latch is set to 1. 2: the pull-up transistor is turned off. fig. 26 internal state at reset 00000000000000 55555555 0000 5 represents undefined. 0 (interrupt disabled) 0 0 0 0 0 0 (interrupt disabled) 0 0 0 0 (interrupt disabled) 0000 0 0 0 0 0 0 0 0 0 (prescaler and timer 1 stopped) 0 0 0 0 (timer 2 stopped) 0 0 0 0 (timer 3 stopped) 00 10 0 0 0000 00 0000 0000 0 0000 0000 555 0000 0000 55 111
30 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer voltage drop detection circuit the built-in voltage drop detection circuit is designed to detect a drop in voltage and to reset the microcomputer if the supply voltage drops below a set value. fig. 27 voltage drop detection reset circuit fig. 28 voltage drop detection circuit operation waveform reset pin wef watchdog timer output internal reset signal power-on reset circuit pull-up transistor voltage drop detection circuit v dd reset voltage internal reset signal the microcomputer starts operation after the f(x in ) is counted 10757 to 10786 times. note: set the vdce pin to h level to operate the voltage drop detection circuit. the voltage drop detection circuit is not operated at the ram back-up mode.
31 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer ram back-up mode the 4570 group has the ram back-up mode. when the epof and pof instructions are executed continuously, system enters the ram back-up state. the pof instruction is equivalent to the nop instruction when the epof instruction is not executed before the pof instruction. as oscillation is stopped retaining ram, the function of reset circuit and states at ram back-up mode, power dissipation can be reduced without losing the contents of ram. table 13 shows the function and states retained at ram back- up. figure 29 shows the state transition. (1) identification of the start condition warm start (return from the ram back-up mode) or cold start (return from the normal reset state) can be identified by examining the state of the power down flag (p) with the snzp instruction. (2) warm start condition when the external wakeup signal is input after the system enters the ram back-up mode by executing the epof and pof instructions continuously, the cpu starts executing the software from address 0 in page 0. in this case, the p flag is 1. (3) cold start condition the cpu starts executing the software from address 0 in page 0 when; ? reset pulse is input to reset pin, or ? reset by watchdog timer is performed, or ? voltage drop detection circuit detects the voltage drop. in this case, the p flag is 0. table 13 functions and states retained at ram back-up function program counter (pc), registers a, b, carry flag (cy), stack pointer (sp) (note 2) contents of ram port level clock control register mr timer control register w1 timer control registers w2, w3 timer count value store register w5 interrupt control registers v1, v2 interrupt control register i1 carrier wave output control register c2 8-bit general-purpose register si timer 1 function timer 2 function timer 3 function pull-up control register pu0 key-on wakeup control register k0 external 0 interrupt request flag (exf0) timer 1 interrupt request flag (t1f) timer 2 interrupt request flag (t2f) timer 3 interrupt request flag (t3f) watchdog timer flag 1 (wdf1) watchdog timer flag 2 (wdf2) watchdog timer enable flag (wef) 16-bit timer (wdt) interrupt enable flag (inte) ram back-up 5 o o o 5 o o 5 o 5 o 5 (note 3) (note 3) o o 5 5 (note 3) (note 3) 5 (note 4) 5 (note 4) 5 (note 4) 5 (note 4) 5 notes 1: o represents that the function can be retained, and 5 represents that the function is initialized. registers and flags other than the above are undefined at ram back-up, and set an initial value after returning. 2: the stack pointer (sp) points the level of the stack register and is initialized to 111 2 at ram back-up. 3: the state of the timer is undefined. 4: initialize the watchdog timer with the wrst instruction, and then execute the epof and pof instructions.
32 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer (4) return signal an external wakeup signal is used to return from the ram back-up mode because the oscillation is stopped. table 14 shows the return condition for each return source. (5) port p4 control registers ? key-on wakeup control register k0 register k0 controls the port p4 key-on wakeup function. set the contents of this register through register a with the tk0a instruction. in addition, the tak0 instruction can be used to transfer the contents of register k0 to register a. ? pull-up control register pu0 register pu0 controls the on/off of the port p4 pull-up transistor. set the contents of this register through register a with the tpu0a instruction. in addition, the tapu0 instruction can be used to transfer the contents of register pu0 to register a. table 14 return source and return condition remarks port p0 shares the falling edge detection circuit with ports p1 and p4. key-on wakeup functions of ports p0 and p1 are always valid. the key- on wakeup function valid/invalid of port p4 can be controlled with register k0. set the port using the key-on wakeup function selected to h level before going into the ram back-up mode. select the return level (l level or h level) with the bit 2 of register i1 according to the external state before going into the ram back-up mode. return condition return by an external falling edge input (h ? l). return by an external h level or l level input. the exf0 flag is not set. return source ports p0, p1 and p4 p2 1 /int pin external wakeup signal
33 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 29 state transition s r q power down flag p pof instruction reset input or voltage drop detection circuit output l set source pof instruction is executed l clear source reset input software start p = 1 ? yes warm start cold start no fig. 30 set source and clear source of the p flag fig. 31 start condition identified example using the snzp instruction table 15 key-on wakeup control register and pull-up control register k0 3 k0 2 k0 1 k0 0 port p4 3 key-on wakeup control bit port p4 2 key-on wakeup control bit port p4 1 key-on wakeup control bit port p4 0 key-on wakeup control bit key-on wakeup control register k0 0 1 0 1 0 1 0 1 key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used at reset : 0000 2 at ram back-up : state retained r/w pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on port p4 3 pull-up transistor control bit port p4 2 pull-up transistor control bit port p4 1 pull-up transistor control bit port p4 0 and p0 1 pull-up transistor control bit 0 1 0 1 0 1 0 1 at reset : 0000 2 at ram back-up : state retained pull-up control register pu0 r/w pu0 3 pu0 2 pu0 1 pu0 0 note: r represents read enabled, and w represents write enabled. : the time required to stabilize f(x in ) oscillation is automatically generated by hardware. stabilizing time a pof instruction is executed a f(x in ) oscillation return input (stabilizing time a ) b (ram back-up mode) f(x in ) stop reset (stabilizing time a )
34 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer clock control the clock control circuit consists of the following circuits. l clock generating circuit l control circuit to stop the clock oscillation l system clock selection circuit l instruction clock generating circuit l control circuit to return from the ram back-up mode fig. 32 clock control circuit structure fig. 33 ceramic resonator external circuit clock signal f(x in ) is obtained by externally connecting a ceramic resonator. connect this external circuit to pins x in and x out at the shortest distance. a feedback resistor is built-in between pins x in and x out . rom ordering method please submit the information described below when ordering mask rom. (1) m34570m4-xxxfp mask rom order confirmation form, m34570m8-xxxfp mask rom order confirmation form, or m34570md-xxxfp mask rom order confirmation form .............................................................................................. 1 (2) data to be written into mask rom .......................... eprom (three sets containing the identical data) (3) mark specification form .................................................... 1 the wait time control circuit is automatically used to generate the time required to stabilize the f(x in ) oscillation. internal clock generating circuit (devided by 3) insturuction clock i1 2 ? level 0 ??level 1 mr 3 1 0 reset falling detected port p4 0 multi- plexer k0 0 ,k0 1 ,k0 2 ,k0 3 counter wait time control circuit (note) software start signal frequency dividing circuit (divided by 4) r s q pof instruction x in x out p2 1 /int oscillation circuit key-on wakeup control register ports p0, p1 port p4 1 port p4 2 port p4 3 system clock note: m34570 x in x out rd c in c out externally connect a damping resistor rd depending on the oscillation frequency. (a feedback resistor is built-in.) use the resonator manufacturer? recommended value because constants such as capacitance depend on the resonator. note:
35 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer list of precautions noise and latch-up prevention connect a capacitor on the following condition to prevent noise and latch-up; ? connect a capacitor (approx. 0.1 m f) between pins v dd and v ss at the shortest distance, ? equalize its wiring in width and length, and ? use the thickest wire. in the one time prom version, cnv ss pin is also used as v pp pin. accordingly, when using this pin, connect this pin to v ss through a resistor about 5 k w (connect this resistor to cnv ss /v pp pin as close as possible). prescaler stop the prescaler operation to change its frequency dividing ratio. a count source stop timer 1, timer 2 or timer 3 counting to change its count source. ? reading the timer count value stop each of the timers and then execute the tab1, tab2 or tab3 instruction to read timer 1, 2 or 3 data. ? writing to reload register r1 when writing the data to reload register r1 while timer 1 is operating, avoid a timing when timer 1 underflows. ? writing to reload register r3h when writing the data to reload register r3h while timer 3 is operating, avoid a timing when timer 3 underflows. ? notes on timer 3 operation start set the timer 1 and register c2 before timer 3 is started to operate (w3 3 =1). ? notes on carrier wave output auto-control operation stop stop the timer 1 (w1 0 =0) after stopping the timer 3 (w3 3 =0) while the carrier wave output is disabled in order to stop the carrier wave output auto-control operation. notes on setting carrier wave output control regiter c2 if the carrier wave output auto-control function is invalidated (c2 0 =0) while the carrier wave output is auto-controlled, the output of port carr retains the state when the auto-control is invalidated regardless of timer 1 underflow. when the carrier wave output auto-control function is validated (c2 0 =1) again after it is invalidated (c2 0 =0), the auto-control by timer 1 is validated again when the next timer 1 underflow occurs. however, when the carrier wave output auto-control bit (c2 0 ) is changed during timer 1 underflow, the error-operation may occur. notes on timer 1 count source when the carrier wave output auto-control function is selected, use the carrier wave carry as the timer 1 count source. if the orclk is used as the count source, a short pulse may occur in port carr output because orclk is not synchronized with the carrier wave. notes on writing to reload register r1 when carrier wave output auto-control operation when the carrier wave output auto-control function is selected and data is set to reload register r1 while timer 1 is operating, avoid the timing that the contents of timer 1 becomes 0 to execute the t1ab instruction. one time prom version the operating power voltage of the one time prom version is within the range of 2.5 v to 5.5 v. multifunction note that the port d 9 output function and p2 1 input function can be used even when t out and int pin function is selected. pof instruction note that system cannot enter the ram back-up state when executing only the pof instruction. execute the pof instruction immediately after executing the epof instruction to enter the ram back-up. be sure to disable interrupts by executing the di instruction before executing the epof instruction. program counter make sure that the pc h does not specify after the last page of the built-in rom. p2 1 /int pin when the interrupt valid waveform of p2 1 /int pin is changed with the bit 2 of register i1 in software, be careful about the following notes. ? clear the bit 0 of register v1 to 0 and then change the interrupt valid waveform of p2 1 /int pin with the bit 2 of register i1 (refer to figure 34 ). ? clear the bit 2 of register i1 to 0 and execute the snz0 instruction to clear the exf0 flag after executing at least one instruction (refer to figure 34 ). depending on the input state of the p2 1 /int pin, the external 0 interrupt request flag (exf0) may be set to 1 when the interrupt valid waveform is changed. 11 12 13 14 15 16 la 4 ; ( 555 0 2 ) tv1a ; the snz0 instruction is valid la 4 ti1a ; change of the interrupt valid waveform nop snz0 ;the snz0 instruction is executed nop . . . . . . 5 : this bit is not related to the setting of int. fig. 34 external 0 interrupt program example
36 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer symbol the symbols shown below are used in the following list of instruction function and machine instructions. symbol a b dr e c2 si v1 v2 i1 w1 w2 w3 w5 k0 pu0 mr x y z dp pc pc h pc l sk sp cy r1 r2 r3h r3l t1 t2 t3 t1f t2f t3f contents register a (4 bits) register b (4 bits) register d (3 bits) register e (8 bits) carrier wave output control register c2 (2 bits) 8-bit general-purpose register si (8 bits) interrupt control register v1 (4 bits) interrupt control register v2 (4 bits) interrupt control register i1 (4 bits) timer control register w1 (4 bits) timer control register w2 (4 bits) timer control register w3 (4 bits) timer count value store register w5 (2 bits) key-on wakeup control register k0 (4 bits) pull-up control register pu0 (4 bits) clock control register mr (4 bits) register x (4 bits) register y (4 bits) register z (2 bits) data pointer (10 bits) (it consists of registers x, y, and z) program counter (14 bits) high-order 7 bits of program counter low-order 7 bits of program counter stack register (14 bits 5 8) stack pointer (3 bits) carry flag timer 1 reload register timer 2 reload register timer 3 reload register timer 3 reload register timer 1 timer 2 timer 3 timer 1 interrupt request flag timer 2 interrupt request flag timer 3 interrupt request flag contents watchdog timer flag 1 watchdog timer flag 2 watchdog timer enable flag interrupt enable flag external 0 interrupt request flag power down flag port d (10 bits) port p0 (4 bits) port p1 (4 bits) port p2 (2 bits) port p3 (4 bits) port p4 (4 bits) hexadecimal variable hexadecimal variable hexadecimal variable hexadecimal variable hexadecimal constant which represents the immediate value hexadecimal constant which represents the immediate value hexadecimal constant which represents the immediate value binary notation of hexadecimal variable a (same for others) direction of data movement data exchange between a register and memory decision of state shown before ? contents of registers and memories negate, flag unchanged after executing instruction ram address pointed by the data pointer label indicating address a 6 a 5 a 4 a 3 a 2 a 1 a 0 label indicating address a 6 a 5 a 4 a 3 a 2 a 1 a 0 in page p 5 p 4 p 3 p 2 p 1 p 0 hex. c + hex. number x (also same for others) symbol wdf1 wdf2 wef inte exf0 p d p0 p1 p2 p3 p4 x y z p n i j a 3 a 2 a 1 a 0 ? ? ? ( ) m(dp) a p, a c + x note : the 4570 group just invalidates the next instruction when a skip is performed. the contents of program counter is not increased by 2. accordingly, the number of cycles does not change even if skip is not performed. however, the cycle count becomes 1 if the tabp p, rt, or rts instruction is skipped.
37 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function (a) ? ? (m(dp)) (x) ? (x)exor(j) j = 0 to 15 (y) ? (y) + 1 (m(dp)) ? (a) (x) ? (x)exor(j) j = 0 to 15 (a) ? n n = 0 to 15 (sp) ? (sp) + 1 (sk(sp)) ? (pc) (pc h ) ? p (pc l ) ? (dr 2 Cdr 0 , a 3 Ca 0 ) (w5) ? (rom(pc)) 9 to 8 (b) ? (rom(pc)) 7 to 4 (a) ? (rom(pc)) 3 to 0 (pc) ? (sk(sp)) (sp) ? (sp) C 1 (a) ? (a) + (m(dp)) (a) ? (a) + (m(dp)) + (cy) (cy) ? carry (a) ? (a) + n n = 0 to 15 (a) ? (a)and(m(dp)) (a) ? (a)or(m(dp)) (cy) ? 1 (cy) ? 0 (cy) = 0 ? (a) ? (a) ? cy ? a 3 a 2 a 1 a 0 list of instruction function grouping grouping mnemonic xami j tma j la n tabp p am amc a n and or sc rc szc cma rar mnemonic tab tba tay tya teab tabe tda tad taz tax tasp lxy x, y lz z iny dey tam j xam j xamd j function (a) ? (b) (b) ? (a) (a) ? (y) (y) ? (a) (e 7 Ce 4 ) ? (b) (e 3 Ce 0 ) ? (a) (b) ? (e 7 Ce 4 ) (a) ? (e 3 Ce 0 ) (dr 2 Cdr 0 ) ? (a 2 Ca 0 ) (a 2 Ca 0 ) ? (dr 2 Cdr 0 ) (a 3 ) ? 0 (a 1 , a 0 ) ? (z 1 , z 0 ) (a 3 , a 2 ) ? 0 (a) ? (x) (a 2 Ca 0 ) ? (sp 2 Csp 0 ) (a 3 ) ? 0 (x) ? x, x = 0 to 15 (y) ? y, y = 0 to 15 (z) ? z, z = 0 to 3 (y) ? (y) + 1 (y) ? (y) C 1 (a) ? (m(dp)) (x) ? (x)exor(j) j = 0 to 15 (a) ? ? (m(dp)) (x) ? (x)exor(j) j = 0 to 15 (a) ? ? (m(dp)) (x) ? (x)exor(j) j = 0 to 15 (y) ? (y) C 1 register to register transfer ram addresses ram to register transfer arithmetic operation ram to register transfer bit operation function (mj(dp)) ? 1 j = 0 to 3 (mj(dp)) ? 0 j = 0 to 3 (mj(dp)) = 0 ? j = 0 to 3 (a) = (m(dp)) ? (a) = n ? n = 0 to 15 (pc l ) ? a 6 Ca 0 (pc h ) ? p (pc l ) ? a 6 Ca 0 (pc h ) ? p (pc l ) ? (dr 2 Cdr 0 , a 3 Ca 0 ) (sp) ? (sp) + 1 (sk(sp)) ? (pc) (pc h ) ? 2 (pc l ) ? a 6 Ca 0 (sp) ? (sp) + 1 (sk(sp)) ? (pc) (pc h ) ? p (pc l ) ? a 6 Ca 0 (sp) ? (sp) + 1 (sk(sp)) ? (pc) (pc h ) ? p (pc l ) ? (dr 2 Cdr 0 , a 3 Ca 0 ) (pc) ? (sk(sp)) (sp) ? (sp) C 1 (pc) ? (sk(sp)) (sp) ? (sp) C 1 (pc) ? (sk(sp)) (sp) ? (sp) C 1 mnemonic sb j rb j szb j seam sea n b a bl p, a bla p bm a bml p, a bmla p rti rt rts grouping comparison operation branch operation subroutine operation return operation
38 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer list of instruction function (continued) interrupt operation function (a) ? (w1) (w1) ? (a) (a) ? (w2) (w2) ? (a) (a) ? (w3) (w3) ? (a) (a) ? (0, 0, w5 1 , w5 0 ) (w5 1 , w5 0 ) ? (a 1 , a 0 ) (w5) ? (t1 9 Ct1 8 ) (b) ? (t1 7 Ct1 4 ) (a) ? (t1 3 Ct1 0 ) at timer 1 stop ( w1 0 =0) (r1 9 Cr1 8 ) ? (w5) (t1 9 Ct1 8 ) ? (w5) (r1 7 Cr1 4 ) ? (b) (t1 7 Ct1 4 ) ? (b) (r1 3 Cr1 0 ) ? (a) (t1 3 Ct1 0 ) ? (a) at timer 1 operating (w1 0 =1), (r1 9 Cr1 8 ) ? (w5) (r1 7 Cr1 4 ) ? (b) (r1 3 Cr1 0 ) ? (a) (b) ? (t2 7 Ct2 4 ) (a) ? (t2 3 Ct2 0 ) (r2 7 Cr2 4 ) ? (b) (t2 7 Ct2 4 ) ? (b) (r2 3 Cr2 0 ) ? (a) (t2 3 Ct2 0 ) ? (a) (r2 7 Cr2 4 ) ? (b) (r2 3 Cr2 0 ) ? (a) mnemonic taw1 tw1a taw2 tw2a taw3 tw3a taw5 tw5a tab1 t1ab tab2 t2ab tr2ab timer operation function (b) ? (t3 7 Ct3 4 ) (a) ? (t3 3 Ct3 0 ) (r3l 7 Cr3l 4 ) ? (b) (t3 7 Ct3 4 ) ? (b) (r3l 3 Cr3l 0 ) ? (a) (t3 3 Ct3 0 ) ? (a) (r3h 7 Cr3h 4 ) ? (b) (r3h 3 Cr3h 0 ) ? (a) (t1f) = 1 ? after skipping the next instruction, (t1f) ? 0 (t2f) = 1 ? after skipping the next instruction, (t2f) ? 0 (t3f) = 1 ? after skipping the next instruction, (t3f) ? 0 grouping mnemonic tab3 t3ab t3hab snzt1 snzt2 snzt3 mnemonic di ei snz0 snzi0 tav1 tv1a tav2 tv2a tai1 ti1a grouping grouping function (inte) ? 0 (inte) ? 1 (exf0) = 1 ? after skipping the next instruction, (exf0) ? 0 i1 2 = 1 : (int0) = h ? i1 2 = 0 : (int0) = l ? (a) ? (v1) (v1) ? (a) (a) ? (v2) (v2) ? (a) (a) ? (i1) (i1) ? (a) timer operation
39 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer list of instruction function (continued) function (pc) ? (pc) + 1 ram back-up mode pof instruction valid (p) = 1 ? ( wdf1 ) ? 0, ( wef ) ? 1 (a) ? (mr 3 Cmr 0 ) (mr 3 Cmr 0 ) ? (a) (b) ? (si 7 Csi 4 ) (a) ? (si 3 Csi 0 ) (si 7 Csi 4 ) ? (b) (si 3 Csi 0 ) ? (a) when executing the tabp p instruction, p 6 ? 1 when executing the tabp p instruction, p 6 ? 0 mnemonic nop pof epof snzp wrst tamr tmra tabsi tsiab sbk rbk mnemonic iap0 op0a iap1 op1a iap2 iap3 op3a iap4 cld rd sd tk0a tak0 tpu0a tapu0 tc2a grouping grouping function (a) ? (p0) (p0) ? (a) (a) ? (p1) (p1) ? (a) (a 1 , a 0 ) ? (p2 1 , p2 0 ) (a 3 , a 2 ) ? (0) (a) ? (p3) (p3) ? (a) (a) ? (p4) (d) ? 1 (d(y)) ? 0 (y) = 0 to 9 (d(y)) ? 1 (y) = 0 to 9 (k0) ? (a) (a) ? (k0) (pu0) ? (a) (a) ? (pu0) (c2 1 , c2 0 ) ? (a 1 , a 0 ) input/output operation other operation c arrier wave generating operation
40 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer instruction code table d 9 d 4 000000 hex. notation d 3 d 0 000001000010 000011000100 000101000110 000111001000 001001001010 001011001100 001101001110 001111 010000 010111 011000 011111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 a b c d e f nop pof snzp di ei rc sc am amc tya tba 00 bla cld iny rd sd dey and or teab cma rar tab tay 01 szb 0 sean seam tda tabe szc 02 bmla snz0 tv1a 03 rt rts rti 04 tasp tad tax taz tav1 epof lz 0 lz 1 lz 2 lz 3 rb 0 rb 1 rb 2 rb 3 sb 0 sb 1 sb 2 sb 3 05 06 07 08 09 0a a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 a 10 a 11 a 12 a 13 a 14 a 15 la 0 la 1 la 2 la 3 la 4 la 5 la 6 la 7 la 8 la 9 la 10 la 11 la 12 la 13 la 14 la 15 tabp 0* tabp 1* tabp 2* tabp 3* tabp 4* tabp 5* tabp 6* tabp 7* tabp 8* tabp 9* tabp 10* tabp 11* tabp 12* tabp 13* tabp 14* tabp 15* 0b bml bml bml bml bml bml bml bml bml bml bml bml bml bml bml bml 0c 0d bl bl bl bl bl bl bl bl bl bl bl bl bl bl bl bl 0e 0f bm bm bm bm bm bm bm bm bm bm bm bm bm bm bm bm 1017 b b b b b b b b b b b b b b b b 181f szb 1 szb 2 szb 3 snzi0 tv2a tav2 tabp 16* tabp 17* tabp 18* tabp 19* tabp 20* tabp 21* tabp 22* tabp 23* tabp 24* tabp 25* tabp 26* tabp 27* tabp 28* tabp 29* tabp 30* tabp 31* tabp 32** tabp 48** tabp 33** tabp 49** tabp 34** tabp 50** tabp 35** tabp 51** tabp 36** tabp 52** tabp 37** tabp 53** tabp 38** tabp 54** tabp 39** tabp 55** tabp 40** tabp 56** tabp 41** tabp 57** tabp 42** tabp 58** tabp 43** tabp 59** tabp 44** tabp 60** tabp 45** tabp 61** tabp 46** tabp 62** tabp 47** tabp 63** bml bml bml bml bml bml bml bml bml bml bml bml bml bml bml bml bl bl bl bl bl bl bl bl bl bl bl bl bl bl bl bl the above table shows the relationship between machine language codes and machine language instructions. d 3 d 0 show the low- order 4 bits of the machine language code, and d 9 d 4 show the high-order 6 bits of the machine language code. the hexadecimal representation of the code is also provided. there are one-word instructions and two-word instructions, but only the first word of each instruction is shown. do not use code marked "." ** cannot be used at m34570m4. for m34570m4/m8/e8, the sbk and rbk instructions cannot be used. for m34570md/ed, the pages which is referred with the tabp instruction (*, **) can be switched with the sbk and rbk instruction s. after executing the sbk instruction, the pages which can be referred with the tabp instruction are 64 to 127. (ex. tabp 0 ? tabp 64) after executing the rbk instruction, the pages which can be referred with the tabp instruction are 0 to 63. if the sbk instruction is not executed, the pages which can be referred with the tabp instruction are always 0 to 63. the codes for the second word of a two-word instruction are described below. bl bml bla bmla sea szd the second word 1 p p a a a a a a a 1 p p a a a a a a a 1 p p p 0 0 p p p p 1 p p p 0 0 p p p p 0 0 0 1 1 1 n n n n 0 0 0 0 1 0 1 0 1 1 rbk sbk
41 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer instruction code table (continued) d 9 d 4 100000 hex. notation d 3 d 0 100001100010 100011100100 100101100110 100111101000 101001101010 101011101100 101101101110 101111 110000 111111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 a b c d e f tw1a tw2a 20 ti1a 21 op0a 22 23 24 tai1 taw1 taw2 25 26 27 28 29 2a iap0 iap1 snzt2 tma 1 tma 2 tma 3 tma 4 tma 5 tma 6 tma 7 tma 8 tma 9 tma 10 tma 11 tma 12 tma 13 tma 14 tma 15 2b tam 1 tam 2 tam 3 tam 4 tam 5 tam 6 tam 7 tam 8 tam 9 tam 10 tam 11 tam 12 tam 13 tam 14 tam 15 2c xam 1 xam 2 xam 3 xam 4 xam 5 xam 6 xam 7 xam 8 xam 9 xam 10 xam 11 xam 12 xam 13 xam 14 xam 15 2d xami 1 xami 2 xami 3 xami 4 xami 5 xami 6 xami 7 xami 8 xami 9 xami 10 xami 11 xami 12 xami 13 xami 14 xami 15 2e 2f lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy lxy 303f op1a snzt1 wrst tma 0 tam 0 xam 0 xami 0 xamd 1 xamd 2 xamd 3 xamd 4 xamd 5 xamd 6 xamd 7 xamd 8 xamd 9 xamd 10 xamd 11 xamd 12 xamd 13 xamd 14 xamd 15 xamd 0 iap2 bl bml bla bmla sea szd the second word 1 p p a a a a a a a 1 p p a a a a a a a 1 p p p 0 0 p p p p 1 p p p 0 0 p p p p 0 0 0 1 1 1 n n n n 0 0 0 0 1 0 1 0 1 1 tpu0a tab1 tmra tamr tapu0 tw3a taw3 tc2a tk0a op3a t2ab t3ab tsiab taw5 tak0 tabsi iap3 iap4 snzt3 tab2 tab3 tw5a t1ab t3hab tr2ab the above table shows the relationship between machine language codes and machine language instructions. d 3 Cd 0 show the low-order 4 bits of the machine language code, and d 9 Cd 4 show the high-order 6 bits of the machine language code. the hexadecimal representation of the code is also provided. there are one-word instructions and two-word instructions, but only th e first word of each instruction is shown. do not use code marked C. the codes for the second word of a two-word instruction are described below.
43 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 42 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code C C C C C C C C C C C C C C C C C C C C C C C C C C continuous description C (y) = 0 (y) = 15 transfers the contents of register b to register a. transfers the contents of register a to register b. transfers the contents of register y to register a. transfers the contents of register a to register y. transfers the contents of registers a and b to register e. transfers the contents of register e to registers a and b. transfers the contents of register a to register d. transfers the contents of register d to register a. transfers the contents of register z to register a. transfers the contents of register x to register a. transfers the contents of stack pointer (sp) to register a. loads the value x in the immediate field to register x, and the value y in the immediate field to register y. when the lxy instructions are continuously coded and executed, only the first lxy instruction is executed and other lxy instructions coded continuously are skipped. loads the value z in the immediate field to register z. adds 1 to the contents of register y. as a result of addition, when the contents of register y is 0, the next instruction is skipped. subtracts 1 from the contents of register y. as a result of subtraction, when the contents of register y is 15, the next instruction is skipped. register to register transfer ram addresses machine instructions tab tba tay tya teab tabe tda tad taz tax tasp lxy x, y lz z iny dey 0000011110 0000001110 0000011111 0000001100 0000011010 0000101010 0000101001 0001010001 0001010011 0001010010 0001010000 11x 3 x 2 x 1 x 0 y 3 y 2 y 1 y 0 00010010z 1 z 0 0000010011 0000010111 (a) (b) (b) (a) (a) (y) (y) (a) (e 7 Ce 4 ) (b) (e 3 Ce 0 ) (a) (b) (e 7 Ce 4 ) (a) (e 3 Ce 0 ) (dr 2 Cdr 0 ) (a 2 Ca 0 ) (a 2 Ca 0 ) (dr 2 Cdr 0 ) (a 3 ) 0 (a 1 , a 0 ) (z 1 , z 0 ) (a 3 , a 2 ) 0 (a) (x) (a 2 Ca 0 ) (sp 2 Csp 0 ) (a 3 ) 0 (x) x, x = 0 to 15 (y) y, y = 0 to 15 (z) z, z = 0 to 3 (y) (y) + 1 (y) (y) C 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 01e 00e 01f 00c 01a 02a 029 051 053 052 050 3xy 048 +z 013 017
C C (y) = 15 (y) = 0 C continuous description C C C C C C C C after transferring the contents of m(dp) to register a, an exclusive or operation is performed between register x and the value j in the immediate field, and stores the result in register x. after exchanging the contents of m(dp) with the contents of register a, an exclusive or operation is performed between register x and the value j in the immediate field, and stores the result in register x. after exchanging the contents of m(dp) with the contents of register a, an exclusive or operation is performed between register x and the value j in the immediate field, and stores the result in register x. subtracts 1 from the contents of register y. as a result of subtraction, when the contents of register y is 15, the next instruction is skipped. after exchanging the contents of m(dp) with the contents of register a, an exclusive or operation is performed between register x and the value j in the immediate field, and stores the result in register x. adds 1 to the contents of register y. as a result of addition, when the contents of register y is 0, the next instruction is skipped. after transferring the contents of register a to m(dp), an exclusive or operation is performed between register x and the value j in the immediate field, and stores the result in register x. loads the value n in the immediate field to register a. when the la instructions are continuously coded and executed, only the first la instruction is executed and other la instructions coded continuously are skipped. transfers bits 9 and 8 to register w5, bits 7 to 4 to register b and bits 3 to 0 to register a. these bits 9 to 0 are the rom pattern in address (dr 2 dr 1 dr 0 a 3 a 2 a 1 a 0 ) 2 specified by registers a and d in page p. when this instruction is executed, 1 stage of stack register is used. when this instruction is executed after executing the sbk instruction, pages 64 to 127 are specified. when this instruction is executed after executing the rbk instruction, pages 0 to 63 are specified. when this instruction is executed after system is released from reset or returned from ram back-up, pages 0 to 63 are specified. ram to register transfer arithmetic operation tam j xam j xamd j xami j tma j la n tabp p (a) (m(dp)) (x) (x)exor(j) j = 0 to 15 (a) ? (m(dp)) (x) (x)exor(j) j = 0 to 15 (a) ? (m(dp)) (x) (x)exor(j) j = 0 to 15 (y) (y) C 1 (a) ? (m(dp)) (x) (x)exor(j) j = 0 to 15 (y) (y) + 1 (m(dp)) (a) (x) (x)exor(j) j = 0 to 15 (a) n n = 0 to 15 (sp) (sp) + 1 (sk(sp)) (pc) (pc h ) p (pc l ) (dr 2 Cdr 0 , a 3 Ca 0 ) (w5) (rom(pc)) 9 to 8 (b) (rom(pc)) 7 to 4 (a) (rom(pc)) 3 to 0 (pc) (sk(sp)) (sp) (sp) C 1 (note) 1 1 1 1 1 1 3 1 1 1 1 1 1 1 2c j 2d j 2f j 2e j 2b j 07 n 08 p +p 101100 jjjj 101101 jjjj 101111 jjjj 101110 jjjj 101011 jjjj 000111nnnn 0010p 5 p 4 p 3 p 2 p 1 p 0 machine instructions (continued) note: p is 0 to 31 for m34570m4 and p is 0 to 63 for m34570e8 and m34570m8. p is 0 to 127 for m34570ed and m34570md, and p 6 is specified with the sbk and rbk instructions. 45 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 44 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code
47 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 46 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code C C overflow = 0 C C C C (cy) = 0 C C C C (mj(dp)) = 0 j = 0 to 3 (a) = (m(dp)) (a) = n C 0/1 C C C 1 0 C C 0/1 C C C C C adds the contents of m(dp) to register a. stores the result in register a. the contents of carry flag cy remains unchanged. adds the contents of m(dp) and carry flag cy to register a. stores the result in register a and carry flag cy. adds the value n in the immediate field to register a. the contents of carry flag cy remains unchanged. skips the next instruction when there is no overflow as the result of operation. performs the and operation between the contents of register a and the contents of m(dp), and stores the result in register a. performs the or operation between the contents of register a and the contents of m(dp), and stores the result in register a. sets carry flag cy to 1. clears carry flag cy to 0. skips the next instruction when the contents of carry flag cy is 0. stores the ones complement for register as contents in register a. rotates the contents of register a including the contents of carry flag cy to the right by 1 bit. sets the contents of bit j (bit specified by the value j in the immediate field) of m(dp) to 1. clears the contents of bit j (bit specified by the value j in the immediate field) of m(dp) to 0. skips the next instruction when the contents of bit j (bit specified by the value j in the immediate field) of m(dp) is 0. skips the next instruction when the contents of register a is equal to the contents of m(dp). skips the next instruction when the contents of register a is equal to the value n in the immediate field. arithmetic operation bit operation comparison operation am amc a n and or sc rc szc cma rar sb j rb j szb j seam sea n 0000001010 0000001011 000110nnnn 0000011000 0000011001 0000000111 0000000110 0000101111 0000011100 0000011101 00010111j j 00010011j j 00001000j j 0000100110 0000100101 000111nnnn 00a 00b 06n 018 019 007 006 02f 01c 01d 05 c +j 04 c +j 02 j 02 6 02 5 07 n 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 (a) (a) + (m(dp)) (a) (a) + (m(dp))+ (cy) (cy) carry (a) (a) + n n = 0 to 15 (a) (a)and(m(dp)) (a) (a)or(m(dp)) (cy) 1 (cy) 0 (cy) = 0 ? (a) (a) ? cy ? a 3 a 2 a 1 a 0 (mj(dp)) 1 j = 0 to 3 (mj(dp)) 0 j = 0 to 3 (mj(dp)) = 0 ? j = 0 to 3 (a) = (m(dp)) ? (a) = n ? n = 0 to 15 machine instructions (continued)
49 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 48 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code C C C C C C C C skip unconditionally C C C C C C C C C branch within a page : branches to address a in the identical page. branch out of a page : branches to address a in page p. branch out of a page : branches to address (dr 2 dr 1 dr 0 a 3 a 2 a 1 a 0 ) 2 specified by registers d and a in page p. call the subroutine in page 2 : calls the subroutine at address a in page 2. call the subroutine : calls the subroutine at address a in page p. call the subroutine : calls the subroutine at address (dr 2 dr 1 dr 0 a 3 a 2 a 1 a 0 ) 2 specified by registers d and a in page p. returns from interrupt service routine to main routine. returns each value of data pointer (x, y, z), carry flag, skip status, nop mode status by the continuous description of the la/lxy instruction, register a and register b to the states just before interrupt. returns from subroutine to the routine called the subroutine. returns from subroutine to the routine called the subroutine, and skips the next instruction unconditionally. branch operation subroutine operation return operation b a bl p, a bla p bm a bml p, a bmla p rti rt rts 011a 6 a 5 a 4 a 3 a 2 a 1 a 0 00111p 4 p 3 p 2 p 1 p 0 10p 5 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0000010000 10p 5 p 4 00p 3 p 2 p 1 p 0 010a 6 a 5 a 4 a 3 a 2 a 1 a 0 00110p 4 p 3 p 2 p 1 p 0 10p 5 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0000110000 10p 5 p 4 00p 3 p 2 p 1 p 0 0001000110 0001000100 0001000101 18 a +a 0e p +p 2p a +a 01 0 2p p 1a a 0c p +p 2pa +a 03 0 2p p 04 6 04 4 04 5 1 2 2 1 2 2 1 1 1 1 2 2 1 2 2 1 2 2 (pc l ) a 6 Ca 0 (pc h ) p (pc l ) a 6 Ca 0 (note) (pc h ) p (pc l ) (dr 2 Cdr 0 , a 3 Ca 0 ) (note) (sp) (sp) + 1 (sk(sp)) (pc) (pc h ) 2 (pc l ) a 6 Ca 0 (sp) (sp) + 1 (sk(sp)) (pc) (pc h ) p (pc l ) a 6 Ca 0 (note) (sp) (sp) + 1 (sk(sp)) (pc) (pc h ) p (pc l ) (dr 2 Cdr 0 , a 3 Ca 0 ) (note) (pc) (sk(sp)) (sp) (sp) C 1 (pc) (sk(sp)) (sp) (sp) C 1 (pc) (sk(sp)) (sp) (sp) C 1 note: p is 0 to 31 for m34570m4 and p is 0 to 63 for m34570e8 and m34570m8. p is 0 to 127 for m34570ed and m34570md, and p 6 is specified with the sbk and rbk instructions. machine instructions (continued)
51 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 50 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code C C (exf0) = 1 (int) = h however, i1 2 = 1 (int) = l however, i1 2 = 0 C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C clears the interrupt enable flag inte to 0, and disables the interrupt. sets the interrupt enable flag inte to 1, and enables the interrupt. skips the next instruction when the contents of exf0 flag is 1. after skipping, clears the exf0 flag to 0. when bit 2 (i1 2 ) of register i1 is 1 : skips the next instruction when the level of int pin is h. when bit 2 (i1 2 ) of register i1 is 0 : skips the next instruction when the level of int pin is l. transfers the contents of interrupt control register v1 to register a. transfers the contents of register a to interrupt control register v1. transfers the contents of interrupt control register v2 to register a. transfers the contents of register a to interrupt control register v2. transfers the contents of interrupt control register i1 to register a. transfers the contents of register a to interrupt control register i1. transfers the contents of timer control register w1 to register a. transfers the contents of register a to timer control register w1. transfers the contents of timer control register w2 to register a. transfers the contents of register a to timer control register w2. transfers the contents of timer control register w3 to register a. transfers the contents of register a to timer control register w3. transfers the contents of timer count value store register w5 to the low-order 2 bits of register a. the contents of the high-order 2 bits of register a is set to 0. transfers the contents of the low-order 2 bits of register a to timer count value store register w5. interrupt operation machine instructions (continued) di ei snz0 snzi0 tav1 tv1a tav2 tv2a tai1 ti1a taw1 tw1a taw2 tw2a taw3 tw3a taw5 tw5a 0000000100 0000000101 0000111000 0000111010 0001010100 0000111111 0001010101 0000111110 1001010011 1000010111 1001001011 1000001110 1001001100 1000001111 1001001101 1000010000 1001001111 1000010010 00 4 00 5 03 8 03 a 054 03f 055 03e 253 217 24b 20e 24c 20f 24d 210 24f 212 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (inte) 0 (inte) 1 (exf0) = 1 ? after skipping the next instruction, (exf0) 0 i1 2 = 1 : (int) = h ? i1 2 = 0 : (int) = l ? (a) (v1) (v1) (a) (a) (v2) (v2) (a) (a) (i1) (i1) (a) (a) (w1) (w1) (a) (a) (w2) (w2) (a) (a) (w3) (w3) (a) (a) (0, 0, w5 1 , w5 0 ) (w5 1 , w5 0 ) (a 1 , a 0 ) timer operation
53 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 52 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code C C C C C C C C C C C C C C C C transfers the contents of the high-order 2 bits of timer 1 to register w5, and transfers the contents of the low-order 8 bits of timer 1 to registers a and b. when stopping (w1 0 =0), transfers the contents of register w5 to the contents of the high-order 2 bits of timer 1 and of the timer 1 reload register, and transfers the contents of registers a and b to the contents of the low-order 8 bits of timer 1 and of the timer 1 reload register. when operating (w1 0 =1), transfers the contents of register w5 to the contents of the high-order 2 bits of the timer 1 reload register, and transfers the contents of registers a and b to the contents of the low- order 8 bits of the timer 1 reload register. transfers the contents of timer 2 to registers a and b. transfers the contents of registers a and b to timer 2 and timer 2 reload register. transfers the contents of registers a and b to timer 2 reload register. transfers the contents of timer 3 to registers a and b. transfers the contents of registers a and b to timer 3 and timer 3 reload register r3l. transfers the contents of registers a and b to timer 3 reload register r3h. tab1 t1ab tab2 t2ab tr2ab tab3 t3ab t3hab timer operation 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1001110000 1000110000 1001110001 1000110001 1000111010 1001110010 1000110010 1000111101 270 230 271 231 23a 272 232 23d (w5) (t1 9 , t1 8 ) (b) (t1 7 Ct1 4 ) (a) (t1 3 Ct1 0 ) at timer 1 stop (w1 0 =0), (r1 9 , r1 8 ) (w5) (t1 9 , t1 8 ) (w5) (r1 7 Cr1 4 ) (b) (t1 7 Ct1 4 ) (b) (r1 3 Cr1 0 ) (a) (t1 3 Ct1 0 ) (a) at timer 1 operating (w1 0 =1), (r1 9 , r1 8 ) (w5) (r1 7 Cr1 4 ) (b) (r1 3 Cr1 0 ) (a) (b) (t2 7 Ct2 4 ) (a) (t2 3 Ct2 0 ) (r2 7 Cr2 4 ) (b) (t2 7 Ct2 4 ) (b) (r2 3 Cr2 0 ) (a) (t2 3 Ct2 0 ) (a) (r2 7 Cr2 4 ) (b) (r2 3 Cr2 0 ) (a) (b) (t3 7 Ct3 4 ) (a) (t3 3 Ct3 0 ) (r3l 7 Cr3l 4 ) (b) (t3 7 Ct3 4 ) (b) (r3l 3 Cr3l 0 ) (a) (t3 3 Ct3 0 ) (a) (r3h 7 Cr3h 4 ) (b) (r3h 3 Cr3h 0 ) (a) machine instructions (continued)
55 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 54 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code (t1f) = 1 (t2f) = 1 (t3f) = 1 C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C skips the next instruction when the contents of t1f flag is 1. after skipping, clears t1f flag. skips the next instruction when the contents of t2f flag is 1. after skipping, clears t2f flag. skips the next instruction when the contents of t3f flag is 1. after skipping, clears t3f flag. transfers the input of port p0 to register a. outputs the contents of register a to port p0. transfers the input of port p1 to register a. outputs the contents of register a to port p1. transfers the input of port p2 to register a. transfers the input of port p3 to register a. outputs the contents of register a to port p3. transfers the input of port p4 to register a. sets port d to 1. clears a bit of port d specified by register y to 0. sets a bit of port d specified by register y to 1. transfers the contents of register a to key-on wakeup control register k0. transfers the contents of key-on wakeup control register k0 to register a. transfers the contents of register a to pull-up control register pu0. transfers the contents of pull-up control register pu0 to register a. snzt1 snzt2 snzt3 iap0 op0a iap1 op1a iap2 iap3 op3a iap4 cld rd sd tk0a tak0 tpu0a tapu0 1010000000 1010000001 1010000010 1001100000 1000100000 1001100001 1000100001 1001100010 1001100011 1000100011 1001100100 0000010001 0000010100 0000010101 1000011011 1001010110 1000101101 1001010111 280 281 282 260 220 261 221 262 263 223 264 011 014 015 21b 256 22d 257 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (t1f) = 1 ? after skipping the next instruction (t1f) 0 (t2f) = 1 ? after skipping the next instruction (t2f) 0 (t3f) = 1 ? after skipping the next instruction (t3f) 0 (a) (p0) (p0) (a) (a) (p1) (p1) (a) (a 1 , a 0 ) (p2 1 , p2 0 ) (a 3 , a 2 ) 0 (a) (p3) (p3) (a) (a) (p4) (d) 1 (d(y)) 0 (y) = 0 to 9 (d(y)) 1 (y) = 0 to 9 (k0) (a) (a) (k0) (pu0) (a) (a) (pu0) machine instructions (continued) input/output operation timer operation
57 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer skip condition detailed description carry flag cy 56 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer function mnemonic d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 hexadecimal notation type of instructions parameter number of words number of cycles instruction code tc2a nop pof epof snzp wrst tabsi tsiab tamr tmra sbk rbk 1010101001 0000000000 0000000010 0 001011011 0000000011 1010100000 1001111000 1000111000 1001010010 1000010110 0001000001 0001000000 1 1 1 1 1 1 1 1 1 1 1 1 (c2 1 , c2 0 ) (a 1 , a 0 ) (pc) (pc) + 1 transition to ram back-up mode pof instruction valid (p) = 1 ? (wdf1) 0, (wef) 1 (b) (si 7 Csi 4 ) (a) (si 3 Csi 0 ) (si 7 Csi 4 ) (b) (si 3 Csi 0 ) (a) (a) (mr 3 Cmr 0 ) (mr 3 Cmr 0 ) (a) when executing the tabp p instruction, p 6 1 when executing the tabp p instruction, p 6 0 1 1 1 1 1 1 1 1 1 1 1 1 2a9 000 002 05b 003 2a0 278 238 252 216 041 040 transfers the contents of register a to carrier wave output control register c2. no operation puts the system in ram back-up mode state by executing the pof instruction after executing the epof instruction. validates the pof instruction which is executed after the epof instruction by executing the epof instruction. skips the next instruction when p flag is 1. after skipping, p flag remains unchanged. operates the watchdog timer and initializes the watchdog timer flag (wdf1). transfers the contents of general-purpose register si to registers a and b. transfers the contents of registers a and b to general-purpose register si. transfers the contents of clock control register mr to register a. transfers the contents of register a to clock control register mr. data area which is referred when executing the tabp p instruction is set to pages 64 to 127. this setting is valid only for the tabp p instruction. data area which is referred when executing the tabp p instruction is set to pages 0 to 63. this setting is valid only for the tabp p instruction. if the sbk instruction is not executed, p 6 when executing the tabp p instruction is 0. C C C C C C C C C C C C C C C C (p) = 1 C C C C C C C other operation carrier generating circuit operation
58 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer control registers v1 3 v1 2 v1 1 v1 0 timer 2 interrupt enable bit timer 1 interrupt enable bit not used external 0 interrupt enable bit 0 1 0 1 0 1 0 1 interrupt disabled (snzt2 instruction is valid) interrupt enabled (snzt2 instruction is invalid) interrupt disabled (snzt1 instruction is valid) interrupt enabled (snzt1 instruction is invalid) this bit has no function, but read/write is enabled. interrupt disabled (snz0 instruction is valid) interrupt enabled (snz0 instruction is invalid) interrupt control register v1 at reset : 0000 2 ram back-up : 0000 2 r/w v2 3 v2 2 v2 1 v2 0 not used not used not used timer 3 interrupt enable bit 0 1 0 1 0 1 0 1 this bit has no function, but read/write is enabled. interrupt disabled (snzt3 instruction is valid) interrupt enabled (snzt3 instruction is invalid) interrupt control register v2 at reset : 0000 2 at ram back-up : 0000 2 r/w this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. notes 1: r represents read enabled, and w represents write enabled. 2: depending on the input state of p2 1 /int pin, the external interrupt request flag exf0 may be set to 1 when the contents of i1 2 is changed. accordingly, set a value to bit 2 of register i1 and execute the snz0 instruction to clear the exf0 flag after executing at least one instruction. i1 3 i1 2 i1 1 i1 0 not used interrupt valid waveform for int pin /return level selection bit (note 2) not used not used 0 1 0 1 0 1 0 1 this bit has no function, but read/write is enabled. falling waveform (l level of int pin is recognized with the snzi0 instruction)/l level rising waveform (h level of int pin is recognized with the snzi0 instruction)/h level this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. interrupt control register i1 r/w at reset : 0000 2 at ram back-up : state retained
59 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer control registers (continued) timer control register w1 w1 3 w1 2 w1 1 w1 0 at reset : 0000 2 at ram back-up : 0000 2 0 1 0 1 0 1 0 1 r/w stop (prescaler state initialized) operating instruction clock divided by 4 instruction clock divided by 8 prescaler output (orclk) carrier output (carry) stop (state retained) operating prescaler control bit prescaler dividing ratio selection bit timer 1 count source selection bit timer 1 control bit timer control register w2 at reset : 0000 2 at ram back-up : state retained r/w 0 1 stop (state retained) operating port d 9 t out pin w2 3 w2 2 w2 1 w2 0 timer 2 control bit port d 9 /t out pin function selection bit timer 2 count source selection bits 0 1 w2 1 0 0 1 1 count source prescaler output (orclk) timer 1 underflow signal instruction clock 16-bit timer underflow signal timer control register w3 at reset : 0000 2 at ram back-up : state retained r/w 0 1 0 1 stop (state retained) operating this bit has no function, but read/write is enabled. w3 3 w3 2 w3 1 w3 0 timer 3 control bit not used timer 3 count source selection bits w2 0 0 1 0 1 w3 1 0 0 1 1 w3 0 0 1 0 1 count source timer 2 underflow signal prescaler output (orclk) f(x in ) or f(x in )/2 not available timer count value store register w5 at reset : 00 2 at ram back-up : state retained r/w 2-bit register. the contents of the high-order 2 bits (bits 9 and 8) of the 10-bit rom pattern at address (d 2 d 1 d 0 a 3 a 2 a 1 a 0 ) in page p specified by registers d and a is stored in this register w5 with the tabp p instruction. in addition, data can be transferred between the low-order 2 bits of register a and this register w5 with the tw5a or taw5 instruction. data can be read/written to/from the high-order 2 bits of timer 1 with the t1ab or tab1 instruction. note: r represents read enabled, and w represents write enabled.
60 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer control registers (continued) c2 1 port carr output control bit at reset : 00 2 carrier wave output control register c2 at ram back-up : 00 2 w c2 0 0 1 0 1 auto-control output by timer 1 is invalid auto-control output by timer 1 is valid port carr l level output port carr h level output carrier wave output auto-control bit k0 3 k0 2 k0 1 k0 0 port p4 3 key-on wakeup control bit port p4 2 key-on wakeup control bit port p4 1 key-on wakeup control bit port p4 0 key-on wakeup control bit key-on wakeup control register k0 0 1 0 1 0 1 0 1 key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used key-on wakeup not used key-on wakeup used at reset : 0000 2 at ram back-up : state retained r/w pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on pull-up transistor off pull-up transistor on port p4 3 pull-up transistor control bit port p4 2 pull-up transistor control bit port p4 1 pull-up transistor control bit port p4 0 and p0 1 pull-up transistor control bit 0 1 0 1 0 1 0 1 at reset : 0000 2 at ram back-up : state retained pull-up control register pu0 r/w pu0 3 pu0 2 pu0 1 pu0 0 f(x in ) f(x in )/4 this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. this bit has no function, but read/write is enabled. system clock selection bit not used not used not used 0 1 0 1 0 1 0 1 at reset : 1000 2 at ram back-up : state retained clock control register mr r/w mr 3 mr 2 mr 1 mr 0 at reset : 00 16 at ram back-up : state retained 8-bit general purpose register pu0 r/w 8-bit general purpose register. 8-bit data can be transferred between this register pu0 and registers a and b with the tsiab instruction and tabsi instruction. note: r represents read enabled, and w represents write enabled.
61 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer absolute maximum ratings parameter supply voltage input voltage p0, p1, p2, p3, p4, reset , x in , vdce output voltage p0, p1, p3, d output voltage carr, x out power dissipation operating temperature range storage temperature range conditions output transistors in cut-off state symbol v dd v i v o v o pd topr tstg ratings C0.3 to 7.0 C0.3 to v dd +0.3 C0.3 to v dd +0.3 C0.3 to v dd +0.3 300 C20 to 70 C40 to 125 unit v v v v mw c c recommended operating conditions1 (mask rom version:ta = C20 c to 70 c, v dd = 2.0 v to 5.5 v, unless otherwise noted) (one time prom version:ta = C20 c to 70 c, v dd = 2.5 v to 5.5 v, unless otherwise noted) min. 2.0 4.5 2.0 2.5 4.5 2.5 1.8 2.0 limits symbol v dd v ram v ss f(x in ) max. 5.5 5.5 5.5 5.5 5.5 5.5 5.5 5.5 4.2 2.0 1.0 4.2 2.0 1.0 typ. 0 unit v v v v mhz conditions f(x in ) 4.2 mhz ceramic resonator f(x in ) 2.0 mhz ceramic resonator f(x in ) 1.0 mhz ceramic resonator f(x in ) 4.2 mhz ceramic resonator f(x in ) 2.0 mhz ceramic resonator f(x in ) 1.0 mhz ceramic resonator ram back-up v dd =2.0 v to 5.5v v dd =4.5 v to 5.5v v dd =2.0 v to 5.5v v dd =2.5 v to 5.5v v dd =4.5 v to 5.5v v dd =2.5 v to 5.5v parameter supply voltage ram back-up voltage supply voltage mask rom version system clock =f(x in )/4 mask rom version system clock =f(x in ) one time prom version system clock =f(x in )/4 one time prom version system clock =f(x in ) mask rom version one time prom version mask rom version system clock =f(x in )/4 mask rom version system clock =f(x in ) one time prom version system clock =f(x in )/4 one time prom version system clock =f(x in ) oscillation frequency (at ceramic resonance)
62 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer recommended operating conditions 2 (mask rom version:ta = C20 c to 70 c, v dd = 2.0 v to 5.5 v, unless otherwise noted) (one time prom version:ta = C20 c to 70 c, v dd = 2.5 v to 5.5 v, unless otherwise noted) limits max. typ. unit conditions min. parameter symbol v ih v ih v ih v ih v il v il v il v il i ol (peak) i ol (peak) i ol (avg) i ol (avg) i oh (peak) i oh (avg) s i ol s i ol t pon h level input voltage p0, p1, p2, p3, p4, vdce h level input voltage x in ______ h level input voltage reset h level input voltage int l level input voltage p0, p1, p2, p3, p4, vdce l level input voltage x in ______ l level input voltage reset l level input voltage int l level peak output current p0, p1, d 0 Cd 9 , carr l level peak output current p3 l level average output current p0, p1, d 0 Cd 9 , carr (note) l level average output current p3 (note) h level peak output current carr h level average output current carr (note) l total current p0, p1, p3 l total current d power reset circuit valid power rising time 10 4 30 24 5 2 15 12 C30 C15 C15 C7 30 20 100 0.7v dd 0.85v dd 0.8v dd 0 0 0 0 0.8v dd v dd v dd v dd v dd 0.3v dd 0.3v dd 0.3v dd 0.2v dd v v v v v v v v v dd =5.0 v v dd =3.0 v v dd =5.0 v v dd =3.0 v v dd =5.0 v v dd =3.0 v v dd =5.0 v v dd =3.0 v v dd =5.0 v v dd =3.0 v v dd =5.0 v v dd =3.0 v mask rom version v dd = 0 to 2.0 v one time prom version v dd = 0 to 2.5 v ma ma ma ma ma ma ma ma m s note: the average output current is the average current value at the 100 ms interval.
63 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer unit v v v m a m a m a ma m a k w k w v v max. 0.9 0.9 1.5 1.5 1 1 2.6 125 250 70 130 electrical characteristics (mask rom version:ta = C20 c to 70 c, v dd = 2.0 v to 5.5 v, unless otherwise noted) (one time prom version:ta = C20 c to 70 c, v dd = 2.5 v to 5.5 v, unless otherwise noted) limits symbol v ol v ol v oh i ih i il i oz i dd r ph v t+ C v tC test conditions i ol = 5 ma i ol = 2 ma i ol = 15 ma i ol = 12 ma i oh = 15 ma i oh = C7 ma v i = v dd (note) v i = 0 v (note) v o = v dd v dd = 5.0 v, f(x in ) = 4.2 mhz system clock = f(x in )/4 v dd = 5.0 v system clock = f(x in ) v dd = 3.0 v, f(x in ) = 4.2 mhz system clock = f(x in )/4 v dd = 3.0 v system clock = f(x in ) f(x in ) = stop, typical value at ta = 25 c v dd = 5.0 v, v i = 0 v v dd = 3.0 v, v i = 0 v v dd = 5.0 v, v i = 0 v v dd = 3.0 v, v i = 0 v v dd = 5.0 v v dd = 3.0 v v dd = 5.0 v v dd = 3.0 v typ. 1.3 0.1 50 100 30 60 0.5 0.4 1.5 0.6 v dd = 5.0 v v dd = 3.0 v v dd = 5.0 v v dd = 3.0 v v dd = 5.0 v v dd = 3.0 v min. 2.4 1.0 C1 20 40 12 25 f(x in ) = 2 mhz f(x in ) = 1 mhz f(x in ) = 1 mhz f(x in ) = 500 khz 1.9 1.3 0.6 0.5 0.4 3.8 2.6 1.2 1.0 0.8 10 parameter l level output voltage p0, p1, d 0 Cd 9 , carr, reset l level output voltage p3 h level output voltage carr h level input current p0, p1, p2, p3, p4, reset , vdce l level input current p2, p3, p4, reset , vdce output current at off-state d 0 Cd 9 supply current pull-up resistor value hysteresis note: in this case, the pull-up transistor of port p4 is turned off by software. at cpu operating mode at ram back-up mode p0, p1, p4 reset int reset
64 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer basic timing diagram clock port d output port p0, p1, p3 output port p0, p1, p2, p3, p4 input interrupt input x in parameter pin name machine cycle state t 3 t 1 t 2 t 3 mi mi+1 int d 0 Cd 9 p0 0 Cp0 3 p1 0 Cp1 3 p0 0 Cp0 3 p1 0 Cp1 3 p2 0 , p2 1 p3 0 Cp3 3 p3 0 Cp3 3 p4 0 Cp4 3 (system clock=f(x in )) x in (system clock=f(x in )/4)
65 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer product m34570e8fp m34570edfp prom size ( 5 10 bits) 8192 words 16384 words ram size ( 5 4 bits) 128 words 128 words package 36p2r-a 36p2r-a rom type one time prom built-in prom version in addition to the mask rom version, the 4570 group has the programmable rom version software compatible with mask rom. the one time prom version has prom which can only be written to and not be erased. the built-in prom version has functions similar to those of the mask rom version, but it has a prom mode that enables writing to built-in prom. table 16 shows the product of built-in prom version. figure 35 shows the pin configurations of built-in prom version. the one time prom version has pin-compatibility with the mask rom version. table 16 product of built-in prom version outline 36p2r-a fig. 35 pin configuration of built-in prom version pin configuration (top view) reset 36 35 34 33 31 30 26 25 24 23 22 21 20 19 d 1 p4 0 p4 1 p4 2 p4 3 cnv ss p1 3 p1 2 p0 2 p1 0 1 2 3 4 6 7 8 9 10 11 12 14 15 16 v dd x out x in v ss d 0 p0 1 p0 0 p2 0 5 13 17 18 32 27 29 28 p1 1 p0 3 p2 1 /int carr p3 2 p3 1 p3 0 vdce m34570exfp d 3 d 5 d 4 d 7 d 6 d 8 d 9 /t out d 2 p3 3
66 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer fig. 36 prom memory map fig. 37 flow of writing and test of the product shipped in blank (1) prom mode the built-in prom version has a prom mode in addition to a normal operation mode. the prom mode is used to write to and read from the built-in prom. in the prom mode, the programming adapter can be used with a general-purpose prom programmer to write to or read from the built-in prom as if it were m5m27c256k. programming adapter is listed in table 17. contact addresses at the end of this book for the appropriate prom programmer. ? writing and reading of built-in prom programming voltage is 12.5 v. write the program in the prom of the built-in prom version as shown in figure 36. (2) notes on handling a high-voltage is used for writing. take care that overvoltage is not applied. take care especially at turning on the power. for the one time prom version mitsubishi electric corp. does not perform prom writing test and screening in the assembly process and following processes. in order to improve reliability after writing, performing writing and test according to the flow shown in figure 37 before using is recommended. table 17 programming adapter microcomputer m34570e8fp, m34570edfp programming adapter pca7425 writing with prom programmer screening (leave at 150 ? for 40 hours) (note) verify test with prom programmer function test in target device since the screening temperature is higher than storage temperature, never expose the microcomputer to 150 ? exceeding 100 hours. note: address 0000 16 1fff 16 4000 16 5fff 16 7fff 16 1 11 d 4 d 3 d 2 d 1 d 0 high-order 5 bits 1 11 d 4 d 3 d 2 d 1 d 0 low-order 5 bits the shaded area can be used only for m34570ed. set ?f 16 ?to the shaded area.
67 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 1. confirmation three sets of eproms are required for each pattern if this order is performed by eproms. one floppy disk is required for each pattern if this order is performed by floppy disk. ordering by the eproms specify the type of eproms submitted (check in the approximate box). if at least two of the three sets of eproms submitted contain the identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differ from this data. thus, the customer must be especially careful in verifying the data contained in the eproms submitted. checksum code for entire eprom area (hexadecimal notation) eprom type: company name date issued date: [ customer tel ( ) mask rom number date: section head signature supervisor signature responsible officer supervisor issuance s ignature receipt gzz-sh55-08b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570m4-xxxfp mitsubishi electric please fill in all items marked [ . 27c256 27c512 low-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 high-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 0000 16 0fff 16 4000 16 4fff 16 7fff 16 4.00k 4.00k low-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 high-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 0000 16 0fff 16 4000 16 4fff 16 ffff 16 4.00k 4.00k set ff 16 in the shaded area. set 111 2 in the area of low-order and high-order 5-bit data.
68 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 2. mark specification mark specification must be submitted using the correct form for the type of package being ordered. fill out the approximate mark specification form (36p2r-a for m34570m4-xxxfp) and attach to the mask rom order confirmation form. [ 3. comments mask rom number gzz-sh55-08b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570m4-xxxfp mitsubishi electric ordering by floppy disk we will produce masks based on the mask files generated by the mask file generating utility. we shall as- sume the responsibility for errors only if the mask rom data on the products we produce differs from this mask file. thus, extreme care must be taken to verify the mask file in the submitted floppy disk. the submitted floppy disk must be-3.5 inch 2hd type and dos/v format. and the number of the mask files must be 1 in one floppy disk. file code (hexadecimal notation) mask file name .msk (equal or less than eight characters)
69 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 1. confirmation three sets of eproms are required for each pattern if this order is performed by eproms. one floppy disk is required for each pattern if this order is performed by floppy disk. ordering by the eproms specify the type of eproms submitted (check in the approximate box). if at least two of the three sets of eproms submitted contain the identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differ from this data. thus, the customer must be especially careful in verifying the data contained in the eproms submitted. checksum code for entire eprom area (hexadecimal notation) eprom type: company name date issued date: [ customer tel ( ) mask rom number date: section head signature supervisor signature responsible officer supervisor issuance s ignature receipt gzz-sh55-09b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570m8-xxxfp mitsubishi electric please fill in all items marked [ . 27c256 27c512 low-order 5-bit data 1234567890123456789012345 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1234567890123456789012345 high-order 5-bit data 1234567890123456789012345 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1 23456789012345678901234 5 1234567890123456789012345 0000 16 1fff 16 4000 16 5fff 16 7fff 16 8.00k 8.00k low-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 high-order 5-bit data 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 0000 16 1fff 16 4000 16 5fff 16 ffff 16 8.00k 8.00k set ff 16 in the shaded area. set 111 2 in the area of low-order and high-order 5-bit data.
70 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 2. mark specification mark specification must be submitted using the correct form for the type of package being ordered. fill out the approximate mark specification form (36p2r-a for m34570m8-xxxfp) and attach to the mask rom order confirmation form. [ 3. comments mask rom number gzz-sh55-09b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570m8-xxxfp mitsubishi electric ordering by floppy disk we will produce masks based on the mask files generated by the mask file generating utility. we shall as- sume the responsibility for errors only if the mask rom data on the products we produce differs from this mask file. thus, extreme care must be taken to verify the mask file in the submitted floppy disk. the submitted floppy disk must be-3.5 inch 2hd type and dos/v format. and the number of the mask files must be 1 in one floppy disk. file code (hexadecimal notation) mask file name .msk (equal or less than eight characters)
71 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 1. confirmation three sets of eproms are required for each pattern if this order is performed by eproms. one floppy disk is required for each pattern if this order is performed by floppy disk. ordering by the eproms specify the type of eproms submitted (check in the approximate box). if at least two of the three sets of eproms submitted contain the identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differ from this data. thus, the customer must be especially careful in verifying the data contained in the eproms submitted. checksum code for entire eprom area (hexadecimal notation) eprom type: company name date issued date: [ customer tel ( ) mask rom number date: section head signature supervisor signature responsible officer supervisor issuance s ignature receipt gzz-sh55-10b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570md-xxxfp mitsubishi electric please fill in all items marked [ . 27c256 27c512 low-order 5-bit data high-order 5-bit data 0000 16 3fff 16 4000 16 7fff 16 16.00k 16.00k set ff 16 in the shaded area. set 111 2 in the area of low-order and high-order 5-bit data. low-order 5-bit data high-order 5-bit data 0000 16 3fff 16 4000 16 7fff 16 16.00k 16.00k 123456789012345678901234 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 1 2345678901234567890123 4 123456789012345678901234 ffff 16
72 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer [ 2. mark specification mark specification must be submitted using the correct form for the type of package being ordered. fill out the approximate mark specification form (36p2r-a for m34570md-xxxfp) and attach to the mask rom order confirmation form. [ 3. comments mask rom number gzz-sh55-10b <91a0> 4500 series mask rom order confirmation form single-chip microcomputer m34570md-xxxfp mitsubishi electric ordering by floppy disk we will produce masks based on the mask files generated by the mask file generating utility. we shall as- sume the responsibility for errors only if the mask rom data on the products we produce differs from this mask file. thus, extreme care must be taken to verify the mask file in the submitted floppy disk. the submitted floppy disk must be-3.5 inch 2hd type and dos/v format. and the number of the mask files must be 1 in one floppy disk. file code (hexadecimal notation) mask file name .msk (equal or less than eight characters)
73 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer mark specification form 36p2r-a (36-pin shrink sop) mark specification form mitsubishi ic catalog name please choose one of the marking types below (a, b, c), and enter the mitsubishi catalog name and the special mark (if needed). a. standard mitsubishi mark c. special mark required b. customers parts number + mitsubishi catalog name mitsubishi ic catalog name 3 : the standard mitsubishi font is used for all characters except for a logo. note1 : if the special mark is to be printed, indicate the desired layout of the mark in the left figure. the layout will be duplicated as close as possible. mitsubishi lot number (6-digit or 7-digit) and mask rom number (3-digit) are always marked. 2 : if the customers trade mark logo must be used in the special mark, check the box below. please submit a clean original of the logo. for the new special character fonts a clean font original (ideally logo drawing) must be submitted. special logo required customers parts number note : the fonts and size of characters are standard mitsubishi type. mitsubishi ic catalog name note1 : the mark field should be written right aligned. 2 : the fonts and size of characters are standard mitsubishi type. 3 : customers parts number can be up to 11 characters : only 0 ~ 9, a ~ z, +, C, /, (, ), &, ? , . (periods), , (commas) are usable. 4 : if the mitsubishi logo is not required, check the box below. mitsubishi logo is not required mitsubishi lot number (6-digit or 7-digit) 1 18 19 36 mitsubishi lot number (6-digit or 7-digit) 1 18 19 36 1 18 19 36
74 mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer package outline ssop36-p-450-0.80 weight(g) jedec code 0.53 eiaj package code lead material alloy 42 36p2r-a plastic 36pin 450mil ssop symbol min nom max a a 2 b c d e l l 1 y dimension in millimeters h e a 1 i 2 .35 0 .05 0 .13 0 .8 14 .2 8 .63 11 .3 0 .27 1 .0 2 .4 0 .15 0 .0 15 .4 8 .8 0 .93 11 .5 0 .765 1 .43 11 .4 2 .5 0 .2 0 .2 15 .6 8 .23 12 .7 0 .15 0 b 2 ?5 0 0 ?0 e e 1 36 19 18 1 h e e d b e y f a a 2 a 1 l 1 l c e b 2 e 1 i 2 recommended mount pad detail f
? 1999 mitsubishi electric corp. new publication, effective april. 1999. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap. mitsubishi microcomputers 4570 group single-chip 4-bit cmos microcomputer
rev. rev. no. date 1.0 first edition 971022 2.0 main revision points are described below. 990331 m34570md-xxxfp and m34570edfp (rom expansion products [size: 16k 5 10 bits] ) added. sbk and rbk instructions added and tabp p instruction function is expanded. (tabp p instruction: when this instruction is executed after executing the sbk instruction, pages 64 to 127 are specified. when this instruction is executed after executing the rbk in- struction, pages 0 to 63 are specified. when this instruction is executed after system is re- leased from reset and returned from the ram back-up mode, pages 0 to 63 are specified.) bl, bml, bla and bmla instructions revised. referred pages are expanded to pages 0 to 127 (p 6 can be used for page specification.) revision description list 4570 group data sheet (1/1) revision description


▲Up To Search▲   

 
Price & Availability of M34570M4-081FP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X